public abstract class AWombat extends ACoreMLAlgorithm
configuration, learningParameters, sourceCache, targetCache| Modifier | Constructor and Description |
|---|---|
protected |
AWombat() |
| Modifier and Type | Method and Description |
|---|---|
protected RefinementNode |
createNode(AMapping mapping,
String metricExpr)
Create new RefinementNode using either real or pseudo-F-Measure
|
protected void |
fillSampleSourceTargetCaches(AMapping sample) |
protected List<ExtendedClassifier> |
findInitialClassifiers() |
protected double |
fMeasure(AMapping predictions)
calculate either a real or a pseudo-F-Measure
|
protected Set<String> |
getAtomicMeasures() |
protected <T extends RefinementNode> |
getBestNode(Tree<T> root)
Get the most promising node as the node with the best F-score
|
protected double |
getBeta() |
protected double |
getChildrenPenaltyWeight() |
protected double |
getComplexityPenaltyWeight() |
protected int |
getExcutionTimeInMinutes() |
protected int |
getIterationTimeInMinutes() |
protected AMapping |
getMappingOfMetricExpression(String metricExpression,
Tree<? extends RefinementNode> root)
Looks first for the input metricExpression in the already constructed
tree, if found the corresponding mapping is returned.
|
protected double |
getMaxFitnessThreshold() |
protected int |
getMaxIterationNumber() |
protected int |
getMaxRefinmentTreeSize() |
protected double |
getMinPropertyCoverage() |
protected <T extends RefinementNode> |
getMostPromisingNode(Tree<T> root)
Get the most promising node as the node with the best F-score
|
protected double |
getOverAllPenaltyWeight() |
protected double |
getPropertyLearningRate() |
protected void |
init(List<LearningParameter> lp,
ACache sourceCache,
ACache targetCache)
Initialize the core ML algorithm.
|
boolean |
isUnsupervised() |
protected boolean |
isVerbose() |
protected double |
precision(AMapping predictions)
calculate either a real or a pseudo-Precision
|
protected AMapping |
predict(ACache source,
ACache target,
MLResults mlModel)
Predict/generate links from source to target based on mlModel.
|
protected double |
recall(AMapping predictions)
calculate either a real or a pseudo-Recall
|
protected boolean |
saveMapping() |
void |
setDefaultParameters()
Set default ACoreMLAlgorithm parameters values
|
activeLearn, activeLearn, getConfiguration, getName, getNextExamples, getParameter, getParameters, getSourceCache, getTargetCache, learn, learn, setConfiguration, setParameter, supportspublic static final String PARAMETER_MAX_REFINEMENT_TREE_SIZE
public static final String PARAMETER_MAX_ITERATIONS_NUMBER
public static final String PARAMETER_MAX_ITERATION_TIME_IN_MINUTES
public static final String PARAMETER_EXECUTION_TIME_IN_MINUTES
public static final String PARAMETER_MAX_FITNESS_THRESHOLD
public static final String PARAMETER_MIN_PROPERTY_COVERAGE
public static final String PARAMETER_PROPERTY_LEARNING_RATE
public static final String PARAMETER_OVERALL_PENALTY_WEIGHT
public static final String PARAMETER_CHILDREN_PENALTY_WEIGHT
public static final String PARAMETER_COMPLEXITY_PENALTY_WEIGHT
public static final String PARAMETER_VERBOSE
public static final String PARAMETER_ATOMIC_MEASURES
public static final String PARAMETER_SAVE_MAPPING
public static final String PARAMETER_FMEASURE_BETA
protected String sourceVariable
protected String targetVariable
protected PseudoFMeasure pseudoFMeasure
protected AMapping trainingData
protected boolean isUnsupervised
protected ACache sourceSample
protected ACache targetSample
protected RefinementNode createNode(AMapping mapping, String metricExpr)
mapping - of the nodemetricExpr - learning specificationsprotected final double fMeasure(AMapping predictions)
predictions - Mappingprotected final AMapping getMappingOfMetricExpression(String metricExpression, Tree<? extends RefinementNode> root)
metricExpression - learning specificationsprotected AMapping predict(ACache source, ACache target, MLResults mlModel)
ACoreMLAlgorithmpredict in class ACoreMLAlgorithmsource - Cachetarget - CachemlModel - result of training phaseprotected void init(List<LearningParameter> lp, ACache sourceCache, ACache targetCache)
ACoreMLAlgorithminit in class ACoreMLAlgorithmlp - learning parameterssourceCache - the source cachetargetCache - the target cachepublic boolean isUnsupervised()
protected final double precision(AMapping predictions)
predictions - Mappingprotected final double recall(AMapping predictions)
predictions - Mappingprotected final void fillSampleSourceTargetCaches(AMapping sample)
protected final List<ExtendedClassifier> findInitialClassifiers()
protected final <T extends RefinementNode> Tree<T> getBestNode(Tree<T> root)
root - The whole refinement treeprotected final <T extends RefinementNode> Tree<T> getMostPromisingNode(Tree<T> root)
root - The whole refinement treeprotected final boolean saveMapping()
public void setDefaultParameters()
ACoreMLAlgorithmsetDefaultParameters in class ACoreMLAlgorithmprotected boolean isVerbose()
protected double getOverAllPenaltyWeight()
protected double getChildrenPenaltyWeight()
protected double getComplexityPenaltyWeight()
protected double getMinPropertyCoverage()
protected double getPropertyLearningRate()
protected double getBeta()
protected int getIterationTimeInMinutes()
protected int getExcutionTimeInMinutes()
protected double getMaxFitnessThreshold()
protected int getMaxIterationNumber()
protected int getMaxRefinmentTreeSize()
Copyright © 2020. All rights reserved.