Package org.aksw.limes.core.ml.algorithm
Class ACIDS
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.ACoreMLAlgorithm
-
- org.aksw.limes.core.ml.algorithm.ACIDS
-
public class ACIDS extends ACoreMLAlgorithm
-
-
Field Summary
-
Fields inherited from class org.aksw.limes.core.ml.algorithm.ACoreMLAlgorithm
configuration, learningParameters, logger, sourceCache, targetCache
-
-
Constructor Summary
Constructors Constructor Description ACIDS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MLResultsactiveLearn()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 processprotected MLResultsactiveLearn(AMapping oracleMapping)Learning method for supervised active core ML algorithm implementations.protected StringgetName()Name of the core ML algorithm.protected AMappinggetNextExamples(int size)Get a set of examples to be added to the mapping.protected voidinit(List<LearningParameter> lp, ACache source, ACache target)Initialize the core ML algorithm.protected MLResultslearn(PseudoFMeasure pfm)Learning method for unsupervised core ML algorithm implementations.MLResultslearn(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 AMappingpredict(ACache source, ACache target, MLResults mlModel)Predict/generate links from source to target based on mlModel.voidsetDefaultParameters()Set default ACoreMLAlgorithm parameters valuesprotected booleansupports(MLImplementationType mlType)Check whether the mlType is supported.-
Methods inherited from class org.aksw.limes.core.ml.algorithm.ACoreMLAlgorithm
getConfiguration, getParameter, getParameters, getSourceCache, getTargetCache, setConfiguration, setParameter
-
-
-
-
Method Detail
-
getName
protected String getName()
Description copied from class:ACoreMLAlgorithmName of the core ML algorithm.- Specified by:
getNamein classACoreMLAlgorithm- Returns:
- Name of the core ML algorithm.
-
init
protected void init(List<LearningParameter> lp, ACache source, ACache target)
Description copied from class:ACoreMLAlgorithmInitialize the core ML algorithm.- Overrides:
initin classACoreMLAlgorithm- Parameters:
lp- learning parameterssource- the source cachetarget- the target cache
-
learn
public MLResults learn(AMapping trainingData)
Description copied from class:ACoreMLAlgorithmLearning method for supervised core ML algorithm implementations, where the confidence values for each pair in the trainingData determine its truth degree.- Specified by:
learnin classACoreMLAlgorithm- Parameters:
trainingData- used for learning- Returns:
- wrap with results
-
learn
protected MLResults learn(PseudoFMeasure pfm) throws UnsupportedMLImplementationException
Description copied from class:ACoreMLAlgorithmLearning method for unsupervised core ML algorithm implementations.- Specified by:
learnin classACoreMLAlgorithm- Parameters:
pfm- pseudo F-measure for unsupervised learning- Returns:
- wrap with results
- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
predict
protected AMapping predict(ACache source, ACache target, MLResults mlModel)
Description copied from class:ACoreMLAlgorithmPredict/generate links from source to target based on mlModel.- Specified by:
predictin classACoreMLAlgorithm- Parameters:
source- Cachetarget- CachemlModel- result of training phase- Returns:
- the mapping from source to target
-
supports
protected boolean supports(MLImplementationType mlType)
Description copied from class:ACoreMLAlgorithmCheck whether the mlType is supported.- Specified by:
supportsin classACoreMLAlgorithm- Parameters:
mlType- machine learning implementation type- Returns:
- a boolean value
-
getNextExamples
protected AMapping getNextExamples(int size)
Description copied from class:ACoreMLAlgorithmGet a set of examples to be added to the mapping.- Specified by:
getNextExamplesin classACoreMLAlgorithm- Parameters:
size- of the examples- Returns:
- the mapping
-
activeLearn
protected MLResults activeLearn(AMapping oracleMapping)
Description copied from class:ACoreMLAlgorithmLearning method for supervised active core ML algorithm implementations.- Specified by:
activeLearnin classACoreMLAlgorithm- Parameters:
oracleMapping- mapping from the oracle- Returns:
- wrap with results
-
setDefaultParameters
public void setDefaultParameters()
Description copied from class:ACoreMLAlgorithmSet default ACoreMLAlgorithm parameters values- Specified by:
setDefaultParametersin classACoreMLAlgorithm
-
activeLearn
protected MLResults activeLearn() throws UnsupportedMLImplementationException
Description copied from class:ACoreMLAlgorithmLearning 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- Specified by:
activeLearnin classACoreMLAlgorithm- Returns:
- wrap with results
- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
-