Class LearningLiteralRegression
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.rules.multilabel.core.LearningLiteral
-
- moa.classifiers.rules.multilabel.core.LearningLiteralRegression
-
- All Implemented Interfaces:
Configurable
,Serializable
,MOAObject
,OptionHandler
public class LearningLiteralRegression extends LearningLiteral
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.classifiers.rules.multilabel.core.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
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description LearningLiteralRegression()
LearningLiteralRegression(int[] outputsToLearn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class moa.classifiers.rules.multilabel.core.LearningLiteral
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
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
-
-
-
Method Detail
-
getNormalizedErrors
protected double[] getNormalizedErrors(Prediction prediction, Instance instance)
- Specified by:
getNormalizedErrors
in classLearningLiteral
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Specified by:
prepareForUseImpl
in classAbstractOptionHandler
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
tryToExpand
public boolean tryToExpand(double splitConfidence, double tieThreshold)
- Specified by:
tryToExpand
in classLearningLiteral
-
trainOnInstance
public void trainOnInstance(MultiLabelInstance instance)
- Specified by:
trainOnInstance
in classLearningLiteral
-
getStaticOutput
public String getStaticOutput(InstanceInformation instanceInformation)
- Specified by:
getStaticOutput
in classLearningLiteral
-
-