Package org.aksw.limes.core.ml.algorithm
Class Eagle
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.ACoreMLAlgorithm
-
- org.aksw.limes.core.ml.algorithm.Eagle
-
public class Eagle extends ACoreMLAlgorithm
- Author:
- Tommaso Soru (tsoru@informatik.uni-leipzig.de), Klaus Lyko (lyko@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringALGORITHM_NAMEstatic StringBETAstatic StringCROSSOVER_RATEstatic StringGENERATIONSstatic StringINQUIRY_SIZEprotected static org.apache.log4j.Loggerloggerstatic StringMAX_DURATIONstatic StringMAX_ITERATIONSstatic StringMAX_QUALITYstatic StringMEASUREstatic StringMUTATION_RATEstatic StringPOPULATIONstatic StringPRESERVE_FITTESTstatic StringPROPERTY_MAPPINGstatic StringPSEUDO_FMEASUREstatic StringREPRODUCTION_RATEstatic StringTERMINATION_CRITERIAstatic StringTERMINATION_CRITERIA_VALUE-
Fields inherited from class org.aksw.limes.core.ml.algorithm.ACoreMLAlgorithm
configuration, learningParameters, sourceCache, targetCache
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEagle()Eagle constructor.
-
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.intgetTurn()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.protected 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
-
-
-
-
Field Detail
-
ALGORITHM_NAME
protected static final String ALGORITHM_NAME
- See Also:
- Constant Field Values
-
GENERATIONS
public static final String GENERATIONS
- See Also:
- Constant Field Values
-
PRESERVE_FITTEST
public static final String PRESERVE_FITTEST
- See Also:
- Constant Field Values
-
MAX_DURATION
public static final String MAX_DURATION
- See Also:
- Constant Field Values
-
INQUIRY_SIZE
public static final String INQUIRY_SIZE
- See Also:
- Constant Field Values
-
MAX_ITERATIONS
public static final String MAX_ITERATIONS
- See Also:
- Constant Field Values
-
MAX_QUALITY
public static final String MAX_QUALITY
- See Also:
- Constant Field Values
-
TERMINATION_CRITERIA
public static final String TERMINATION_CRITERIA
- See Also:
- Constant Field Values
-
TERMINATION_CRITERIA_VALUE
public static final String TERMINATION_CRITERIA_VALUE
- See Also:
- Constant Field Values
-
BETA
public static final String BETA
- See Also:
- Constant Field Values
-
POPULATION
public static final String POPULATION
- See Also:
- Constant Field Values
-
MUTATION_RATE
public static final String MUTATION_RATE
- See Also:
- Constant Field Values
-
REPRODUCTION_RATE
public static final String REPRODUCTION_RATE
- See Also:
- Constant Field Values
-
CROSSOVER_RATE
public static final String CROSSOVER_RATE
- See Also:
- Constant Field Values
-
PSEUDO_FMEASURE
public static final String PSEUDO_FMEASURE
- See Also:
- Constant Field Values
-
MEASURE
public static final String MEASURE
- See Also:
- Constant Field Values
-
PROPERTY_MAPPING
public static final String PROPERTY_MAPPING
- See Also:
- Constant Field Values
-
logger
protected static org.apache.log4j.Logger logger
-
-
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
protected 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)
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
-
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) throws UnsupportedMLImplementationException
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
- Throws:
UnsupportedMLImplementationException- Exception
-
activeLearn
protected MLResults activeLearn(AMapping oracleMapping) throws UnsupportedMLImplementationException
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
- Throws:
UnsupportedMLImplementationException- if ML implementation is not supported
-
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
-
setDefaultParameters
public void setDefaultParameters()
Description copied from class:ACoreMLAlgorithmSet default ACoreMLAlgorithm parameters values- Specified by:
setDefaultParametersin classACoreMLAlgorithm
-
getTurn
public int getTurn()
- Returns:
- current turn
-
-