public abstract class LearningLiteral extends AbstractOptionHandler
config
Constructor and Description |
---|
LearningLiteral() |
LearningLiteral(int[] outputsToLearn) |
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse, prepareForUseImpl
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
protected AutoExpandVector<AttributeStatisticsObserver> attributeObservers
protected DoubleVector[] literalStatistics
protected int[] outputsToLearn
protected int[] inputsToLearn
protected MultiLabelLearner learner
protected MultiLabelErrorMeasurer errorMeasurer
protected ChangeDetector[] changeDetectors
protected ChangeDetector changeDetector
protected AnomalyDetector anomalyDetector
protected MultiLabelSplitCriterion splitCriterion
protected double weightSeen
protected boolean hasStarted
protected LearningLiteral expandedLearningLiteral
protected LearningLiteral otherBranchLearningLiteral
protected LearningLiteral otherOutputsLearningLiteral
protected AttributeExpansionSuggestion bestSuggestion
protected NumericStatisticsObserver numericStatisticsObserver
protected NominalStatisticsObserver nominalStatisticsObserver
protected OutputAttributesSelector outputSelector
protected InputAttributesSelector inputSelector
protected InstanceInformation instanceInformation
protected Random randomGenerator
protected boolean[] attributesMask
protected double attributesPercentage
protected InstanceTransformer instanceTransformer
protected InstancesHeader instanceHeader
public LearningLiteral()
public LearningLiteral(int[] outputsToLearn)
public abstract void trainOnInstance(MultiLabelInstance instance)
public Prediction getPredictionForInstance(MultiLabelInstance instance)
public abstract boolean tryToExpand(double splitConfidence, double tieThresholdOption)
public boolean updateAndCheckChange(MultiLabelInstance instance)
protected abstract double[] getNormalizedErrors(Prediction prediction, Instance inst)
public boolean updateAndCheckAnomalyDetection(MultiLabelInstance instance)
public double getWeightSeenSinceExpansion()
public int[] getOutputsToLearn()
public void setOutputsToLearn(int[] outputsToLearn)
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic LearningLiteral getExpandedLearningLiteral()
public LearningLiteral getOtherBranchLearningLiteral()
public double[] getErrors()
public void setSplitCriterion(MultiLabelSplitCriterion splitCriterion)
public void setChangeDetector(ChangeDetector changeDetector)
public void setAnomalyDetector(AnomalyDetector anomalyDetector)
public void setNumericObserverOption(NumericStatisticsObserver numericStatisticsObserver)
public void setLearner(MultiLabelLearner learner)
public void setErrorMeasurer(MultiLabelErrorMeasurer errorMeasurer)
public AttributeExpansionSuggestion getBestSuggestion()
public static double computeHoeffdingBound(double range, double confidence, double n)
public void setOutputAttributesSelector(OutputAttributesSelector outputSelector)
public void setNominalObserverOption(NominalStatisticsObserver nominalStatisticsObserver)
public void setRandomGenerator(Random random)
public void setAttributesPercentage(double attributesPercentage)
protected int initializeAttibutesMask(MultiLabelInstance inst)
public void setInputAttributesSelector(InputAttributesSelector inputSelector)
public abstract String getStaticOutput(InstanceInformation instanceInformation)
public int[] getInputsToLearn()
public void setInstanceTransformer(InstanceTransformer instanceTransformer)
public LearningLiteral getOtherOutputsLearningLiteral()
public void setInstanceInformation(InstanceInformation instanceInformation)
public double[] getMeritInputAttributes()
public boolean[] getAttributeMask()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.