public class WombatSimple extends AWombat
isUnsupervised, PARAMETER_ATOMIC_MEASURES, PARAMETER_CHILDREN_PENALTY_WEIGHT, PARAMETER_COMPLEXITY_PENALTY_WEIGHT, PARAMETER_EXECUTION_TIME_IN_MINUTES, PARAMETER_FMEASURE_BETA, PARAMETER_MAX_FITNESS_THRESHOLD, PARAMETER_MAX_ITERATION_TIME_IN_MINUTES, PARAMETER_MAX_ITERATIONS_NUMBER, PARAMETER_MAX_REFINEMENT_TREE_SIZE, PARAMETER_MIN_PROPERTY_COVERAGE, PARAMETER_OVERALL_PENALTY_WEIGHT, PARAMETER_PROPERTY_LEARNING_RATE, PARAMETER_SAVE_MAPPING, PARAMETER_VERBOSE, pseudoFMeasure, sourcePropertiesCoverageMap, sourceSample, sourceUris, sourceVariable, targetPropertiesCoverageMap, targetSample, targetUris, targetVariable, trainingData, wombatParameterNamesconfiguration, learningParameters, sourceCache, targetCache| Modifier | Constructor and Description |
|---|---|
protected |
WombatSimple()
WombatSimple constructor.
|
| 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 |
createRefinementTreeRoot()
initiate the refinement tree as a root node with set of
children nodes containing all initial classifiers
|
RefinementNode |
findBestSolution() |
protected List<RefinementNode> |
getBestKNodes(Tree<RefinementNode> r,
int k) |
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 TreeSet<RefinementNode> |
getSortedNodes(Tree<RefinementNode> r,
double penaltyWeight,
TreeSet<RefinementNode> result) |
protected void |
init(List<LearningParameter> lp,
ACache sourceCache,
ACache targetCache)
Initialize the core ML algorithm.
|
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 boolean |
supports(MLImplementationType mlType)
Check whether the mlType is supported.
|
protected void |
updateScores(Tree<RefinementNode> r)
update F-Measure of the refinement tree r
based on either training data or PFM
|
createNode, fillSampleSourceTargetCaches, findInitialClassifiers, fMeasure, getAtomicMeasures, getBestNode, getBeta, getChildrenPenaltyWeight, getComplexityPenaltyWeight, getExcutionTimeInMinutes, getIterationTimeInMinutes, getMappingOfMetricExpression, getMaxFitnessThreshold, getMaxIterationNumber, getMaxRefinmentTreeSize, getMinPropertyCoverage, getMostPromisingNode, getOverAllPenaltyWeight, getPropertyLearningRate, isUnsupervised, isVerbose, precision, predict, recall, saveMapping, setDefaultParametersgetConfiguration, getParameter, getParameters, getSourceCache, getTargetCache, setConfiguration, setParameterprotected String getName()
ACoreMLAlgorithmgetName in class ACoreMLAlgorithmprotected void init(List<LearningParameter> lp, ACache sourceCache, ACache targetCache)
ACoreMLAlgorithmprotected MLResults learn(AMapping trainingData)
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmtrainingData - used for learningprotected MLResults learn(PseudoFMeasure pfm)
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmpfm - pseudo F-measure for unsupervised learningprotected 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()
ACoreMLAlgorithmactiveLearn in class ACoreMLAlgorithmprotected MLResults activeLearn(AMapping oracleMapping)
ACoreMLAlgorithmactiveLearn in class ACoreMLAlgorithmoracleMapping - mapping from the oracleprotected void updateScores(Tree<RefinementNode> r)
r - refinement treepublic RefinementNode findBestSolution()
protected List<RefinementNode> getBestKNodes(Tree<RefinementNode> r, int k)
r - the root of the refinement treek - number of best nodesprotected TreeSet<RefinementNode> getSortedNodes(Tree<RefinementNode> r, double penaltyWeight, TreeSet<RefinementNode> result)
r - the root of the refinement treepenaltyWeight - from 0 to 1result - refinment treeprotected void createRefinementTreeRoot()
Copyright © 2020. All rights reserved.