public class LearningLiteralClassification extends LearningLiteral
anomalyDetector, attributeObservers, attributesMask, attributesPercentage, bestSuggestion, changeDetector, changeDetectors, errorMeasurer, expandedLearningLiteral, hasStarted, inputSelector, inputsToLearn, instanceHeader, instanceInformation, instanceTransformer, learner, literalStatistics, nominalStatisticsObserver, numericStatisticsObserver, otherBranchLearningLiteral, otherOutputsLearningLiteral, outputSelector, outputsToLearn, randomGenerator, splitCriterion, weightSeen
config
Constructor and Description |
---|
LearningLiteralClassification() |
LearningLiteralClassification(int[] outputsToLearn) |
Modifier and Type | Method and Description |
---|---|
protected double[] |
getNormalizedErrors(Prediction prediction,
Instance instance) |
String |
getStaticOutput(InstanceInformation instanceInformation) |
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
trainOnInstance(MultiLabelInstance instance) |
boolean |
tryToExpand(double splitConfidence,
double tieThreshold) |
computeHoeffdingBound, getAttributeMask, getBestSuggestion, getDescription, getErrors, getExpandedLearningLiteral, getInputsToLearn, getMeritInputAttributes, getOtherBranchLearningLiteral, getOtherOutputsLearningLiteral, getOutputsToLearn, getPredictionForInstance, getWeightSeenSinceExpansion, initializeAttibutesMask, setAnomalyDetector, setAttributesPercentage, setChangeDetector, setErrorMeasurer, setInputAttributesSelector, setInstanceInformation, setInstanceTransformer, setLearner, setNominalObserverOption, setNumericObserverOption, setOutputAttributesSelector, setOutputsToLearn, setRandomGenerator, setSplitCriterion, updateAndCheckAnomalyDetection, updateAndCheckChange
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
public LearningLiteralClassification()
public LearningLiteralClassification(int[] outputsToLearn)
protected double[] getNormalizedErrors(Prediction prediction, Instance instance)
getNormalizedErrors
in class LearningLiteral
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic boolean tryToExpand(double splitConfidence, double tieThreshold)
tryToExpand
in class LearningLiteral
public void trainOnInstance(MultiLabelInstance instance)
trainOnInstance
in class LearningLiteral
public String getStaticOutput(InstanceInformation instanceInformation)
getStaticOutput
in class LearningLiteral
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.