| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
protected List<LearningParameter> |
learningParameters |
protected static org.slf4j.Logger |
logger |
protected ACache |
sourceCache |
protected ACache |
targetCache |
| Constructor and Description |
|---|
ACoreMLAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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 abstract MLResults |
activeLearn(AMapping oracleMapping)
Learning method for supervised active core ML algorithm implementations.
|
Configuration |
getConfiguration() |
protected abstract String |
getName()
Name of the core ML algorithm.
|
protected abstract AMapping |
getNextExamples(int size)
Get a set of examples to be added to the mapping.
|
protected Object |
getParameter(String name)
Get parameter by name.
|
protected List<LearningParameter> |
getParameters() |
ACache |
getSourceCache() |
ACache |
getTargetCache() |
protected void |
init(List<LearningParameter> learningParameters,
ACache sourceCache,
ACache targetCache)
Initialize the core ML algorithm.
|
protected abstract 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 abstract MLResults |
learn(PseudoFMeasure pfm)
Learning method for unsupervised core ML algorithm implementations.
|
protected abstract AMapping |
predict(ACache source,
ACache target,
MLResults mlModel)
Predict/generate links from source to target based on mlModel.
|
void |
setConfiguration(Configuration configuration) |
abstract void |
setDefaultParameters()
Set default ACoreMLAlgorithm parameters values
|
void |
setParameter(String par,
Object val) |
protected abstract boolean |
supports(MLImplementationType mlType)
Check whether the mlType is supported.
|
protected static org.slf4j.Logger logger
protected List<LearningParameter> learningParameters
protected ACache sourceCache
protected ACache targetCache
protected Configuration configuration
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration - the configurationprotected abstract String getName()
protected List<LearningParameter> getParameters()
public abstract void setDefaultParameters()
protected void init(List<LearningParameter> learningParameters, ACache sourceCache, ACache targetCache)
learningParameters - learning parameterssourceCache - the source cachetargetCache - the target cacheprotected abstract MLResults learn(AMapping trainingData) throws UnsupportedMLImplementationException
trainingData - used for learningUnsupportedMLImplementationException - if ML implementation is not supportedprotected abstract MLResults learn(PseudoFMeasure pfm) throws UnsupportedMLImplementationException
pfm - pseudo F-measure for unsupervised learningUnsupportedMLImplementationException - if ML implementation is not supportedprotected abstract AMapping predict(ACache source, ACache target, MLResults mlModel)
source - Cachetarget - CachemlModel - result of training phaseprotected abstract boolean supports(MLImplementationType mlType)
mlType - machine learning implementation typeprotected abstract AMapping getNextExamples(int size) throws UnsupportedMLImplementationException
size - of the examplesUnsupportedMLImplementationException - Exceptionprotected abstract MLResults activeLearn(AMapping oracleMapping) throws UnsupportedMLImplementationException
oracleMapping - mapping from the oracleUnsupportedMLImplementationException - if ML implementation is not supportedprotected abstract MLResults activeLearn() throws UnsupportedMLImplementationException
UnsupportedMLImplementationException - if ML implementation is not supportedprotected Object getParameter(String name)
name - parameter nameNoSuchParameterException - if parameter is not existspublic void setParameter(String par, Object val)
par - parameter nameval - parameter valuepublic ACache getSourceCache()
public ACache getTargetCache()
Copyright © 2018. All rights reserved.