public class LinearEuclid extends ACoreMLAlgorithm
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALGORITHM_NAME |
static String |
BETA |
static String |
ITERATIONS_MAX |
static String |
KAPPA |
static String |
LEARNING_RATE |
protected LinearSelfConfigurator |
lsc
The EUCLID implementation
|
static String |
MIN_COVERAGE |
static String |
MIN_THRESHOLD |
static String |
STRICT |
configuration, learningParameters, logger, sourceCache, targetCache| Constructor and Description |
|---|
LinearEuclid() |
| Modifier and Type | Method and Description |
|---|---|
protected MLResults |
activeLearn()
Learning method for supervised active core ML algorithm implementations
Normally, it is used as a first step to initialize the ML model
before going through the active learning process
|
protected MLResults |
activeLearn(AMapping oracleMapping)
Learning method for supervised active core ML algorithm implementations.
|
protected void |
configureEuclid(LinearSelfConfigurator lsc)
To configure EUCLID implementation.
|
protected String |
getName()
Name of the core ML algorithm.
|
protected AMapping |
getNextExamples(int size)
Get a set of examples to be added to the mapping.
|
protected void |
init(List<LearningParameter> learningParameters,
ACache sourceCache,
ACache targetCache)
Initialize the core ML algorithm.
|
protected MLResults |
learn()
Common learning method for both supervised and unsupervised Euclids.
|
protected MLResults |
learn(AMapping trainingData)
Learning method for supervised core ML algorithm implementations, where
the confidence values for each pair in the trainingData determine its
truth degree.
|
protected MLResults |
learn(PseudoFMeasure pfm)
Learning method for unsupervised core ML algorithm implementations.
|
protected AMapping |
predict(ACache source,
ACache target,
MLResults mlModel)
Predict/generate links from source to target based on mlModel.
|
void |
setDefaultParameters()
Set default ACoreMLAlgorithm parameters values
|
protected boolean |
supports(MLImplementationType mlType)
Check whether the mlType is supported.
|
getConfiguration, getParameter, getParameters, getSourceCache, getTargetCache, setConfiguration, setParameterprotected static final String ALGORITHM_NAME
public static final String STRICT
public static final String ITERATIONS_MAX
public static final String MIN_THRESHOLD
public static final String KAPPA
public static final String BETA
public static final String LEARNING_RATE
public static final String MIN_COVERAGE
protected LinearSelfConfigurator lsc
protected void init(List<LearningParameter> learningParameters, ACache sourceCache, ACache targetCache)
ACoreMLAlgorithminit in class ACoreMLAlgorithmlearningParameters - learning parameterssourceCache - the source cachetargetCache - the target cacheprotected String getName()
ACoreMLAlgorithmgetName in class ACoreMLAlgorithmpublic void setDefaultParameters()
ACoreMLAlgorithmsetDefaultParameters in class ACoreMLAlgorithmprotected MLResults learn()
protected MLResults learn(AMapping trainingData) throws UnsupportedMLImplementationException
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmtrainingData - used for learningUnsupportedMLImplementationException - if ML implementation is not supportedprotected MLResults learn(PseudoFMeasure pfm) throws UnsupportedMLImplementationException
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmpfm - pseudo F-measure for unsupervised learningUnsupportedMLImplementationException - if ML implementation is not supportedprotected AMapping predict(ACache source, ACache target, MLResults mlModel)
ACoreMLAlgorithmpredict in class ACoreMLAlgorithmsource - Cachetarget - CachemlModel - result of training phaseprotected boolean supports(MLImplementationType mlType)
ACoreMLAlgorithmsupports in class ACoreMLAlgorithmmlType - machine learning implementation typeprotected AMapping getNextExamples(int size) throws UnsupportedMLImplementationException
ACoreMLAlgorithmgetNextExamples in class ACoreMLAlgorithmsize - of the examplesUnsupportedMLImplementationException - Exceptionprotected MLResults activeLearn(AMapping oracleMapping) throws UnsupportedMLImplementationException
ACoreMLAlgorithmactiveLearn in class ACoreMLAlgorithmoracleMapping - mapping from the oracleUnsupportedMLImplementationException - if ML implementation is not supportedprotected MLResults activeLearn() throws UnsupportedMLImplementationException
ACoreMLAlgorithmactiveLearn in class ACoreMLAlgorithmUnsupportedMLImplementationException - if ML implementation is not supportedprotected void configureEuclid(LinearSelfConfigurator lsc)
Copyright © 2018. All rights reserved.