public class Dragon extends ACoreMLAlgorithm
| Modifier and Type | Class and Description |
|---|---|
class |
Dragon.SourceTargetValue
Helper class for easier handling of links or link candidates
|
| Modifier and Type | Field and Description |
|---|---|
static String[] |
dateMeasures |
static String[] |
defaultMeasures |
static String |
FITNESS_NAME_GINI_INDEX |
static String |
FITNESS_NAME_GLOBAL_FMEASURE |
static String |
PARAMETER_FITNESS_FUNCTION |
static String |
PARAMETER_MAPPING |
static String |
PARAMETER_MAX_LINK_SPEC_HEIGHT |
static String |
PARAMETER_MIN_PROPERTY_COVERAGE |
static String |
PARAMETER_PROPERTY_LEARNING_RATE |
static String |
PARAMETER_PROPERTY_MAPPING |
static String |
PARAMETER_PRUNING_CONFIDENCE |
static String |
PARAMETER_PRUNING_FUNCTION |
static String[] |
pointsetMeasures |
static String |
PRUNING_NAME_ERROR_ESTIMATE_PRUNING |
static String |
PRUNING_NAME_GLOBAL_FMEASURE |
DecisionTree |
root |
static String[] |
stringMeasures |
static double |
threshold |
learningParameters, sourceCache, targetCache| Constructor and Description |
|---|
Dragon()
Dragon constructor.
|
Dragon(Configuration c)
Constructor uses superconstructor, initializes TreeParser object and sets
configuration
|
| Modifier and Type | Method and Description |
|---|---|
protected MLResults |
activeLearn()
generates an initial training set and calls
activeLearn(AMapping) |
protected MLResults |
activeLearn(AMapping oracleMapping)
Creates a training set out of the oracleMapping and uses
J48 to
build a decision tree The decision tree gets parsed to a
LinkSpecification by TreeParser |
Configuration |
getConfiguration() |
MLResults |
getMlresult() |
String |
getName()
Name of the core ML algorithm.
|
protected AMapping |
getNextExamples(int size)
Get a set of examples to be added to the mapping.
|
ACache |
getSourceCache() |
ACache |
getTargetCache() |
ACache |
getTestSourceCache() |
ACache |
getTestTargetCache() |
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.
|
AMapping |
predict(ACache source,
ACache target,
MLResults mlModel)
Predict/generate links from source to target based on mlModel.
|
void |
setConfiguration(Configuration configuration) |
void |
setDefaultParameters()
Set default ACoreMLAlgorithm parameters values
|
void |
setInitialMapping(AMapping initialMapping) |
void |
setSourceCache(ACache sourceCache) |
void |
setTargetCache(ACache targetCache) |
protected boolean |
supports(MLImplementationType mlType)
Check whether the mlType is supported.
|
getParameter, getParameters, setParameterpublic static final String PARAMETER_PRUNING_CONFIDENCE
public static final String PARAMETER_PROPERTY_MAPPING
public static final String PARAMETER_MAPPING
public static final String PARAMETER_MAX_LINK_SPEC_HEIGHT
public static final String PARAMETER_MIN_PROPERTY_COVERAGE
public static final String PARAMETER_PROPERTY_LEARNING_RATE
public static final String PARAMETER_FITNESS_FUNCTION
public static final String PARAMETER_PRUNING_FUNCTION
public static final String FITNESS_NAME_GINI_INDEX
public static final String FITNESS_NAME_GLOBAL_FMEASURE
public static final String PRUNING_NAME_ERROR_ESTIMATE_PRUNING
public static final String PRUNING_NAME_GLOBAL_FMEASURE
public DecisionTree root
public static final String[] stringMeasures
public static final String[] dateMeasures
public static final String[] pointsetMeasures
public static final String[] defaultMeasures
public static final double threshold
public Dragon()
public Dragon(Configuration c)
c - public String getName()
ACoreMLAlgorithmgetName in class ACoreMLAlgorithmprotected MLResults activeLearn() throws UnsupportedMLImplementationException
activeLearn(AMapping)activeLearn in class ACoreMLAlgorithmUnsupportedMLImplementationException - if ML implementation is not supportedprotected MLResults activeLearn(AMapping oracleMapping) throws UnsupportedMLImplementationException
J48 to
build a decision tree The decision tree gets parsed to a
LinkSpecification by TreeParseractiveLearn in class ACoreMLAlgorithmoracleMapping - UnsupportedMLImplementationException - if ML implementation is not supportedpublic AMapping predict(ACache source, ACache target, MLResults mlModel)
ACoreMLAlgorithmpredict in class ACoreMLAlgorithmsource - Cachetarget - CachemlModel - result of training phasepublic void init(List<LearningParameter> lp, ACache sourceCache, ACache targetCache)
ACoreMLAlgorithminit in class ACoreMLAlgorithmlp - learning parameterssourceCache - the source cachetargetCache - the target cachepublic void setDefaultParameters()
ACoreMLAlgorithmsetDefaultParameters in class ACoreMLAlgorithmprotected MLResults learn(PseudoFMeasure pfm) throws UnsupportedMLImplementationException
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmpfm - pseudo F-measure for unsupervised learningUnsupportedMLImplementationException - if ML implementation is not supportedprotected boolean supports(MLImplementationType mlType)
ACoreMLAlgorithmsupports in class ACoreMLAlgorithmmlType - machine learning implementation typeprotected MLResults learn(AMapping trainingData) throws UnsupportedMLImplementationException
ACoreMLAlgorithmlearn in class ACoreMLAlgorithmtrainingData - used for learningUnsupportedMLImplementationException - if ML implementation is not supportedpublic ACache getSourceCache()
getSourceCache in class ACoreMLAlgorithmpublic ACache getTargetCache()
getTargetCache in class ACoreMLAlgorithmpublic void setSourceCache(ACache sourceCache)
public void setTargetCache(ACache targetCache)
public Configuration getConfiguration()
getConfiguration in class ACoreMLAlgorithmpublic void setConfiguration(Configuration configuration)
setConfiguration in class ACoreMLAlgorithmconfiguration - the configurationpublic MLResults getMlresult()
public void setInitialMapping(AMapping initialMapping)
public ACache getTestSourceCache()
public ACache getTestTargetCache()
protected AMapping getNextExamples(int size) throws UnsupportedMLImplementationException
ACoreMLAlgorithmgetNextExamples in class ACoreMLAlgorithmsize - of the examplesUnsupportedMLImplementationException - ExceptionCopyright © 2018. All rights reserved.