public abstract class AbstractMultiLabelLearner extends AbstractClassifier implements MultiLabelLearner
classifierRandom, downSampleRatio, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
AbstractMultiLabelLearner() |
Modifier and Type | Method and Description |
---|---|
Prediction |
getPredictionForInstance(Example<Instance> example) |
Prediction |
getPredictionForInstance(Instance inst)
Gets the reference to the header of the data stream.
|
abstract Prediction |
getPredictionForInstance(MultiLabelInstance inst) |
double[] |
getVotesForInstance(Instance inst)
Predicts the class memberships for a given instance.
|
void |
trainOnInstanceImpl(Instance instance)
Trains this classifier incrementally using the given instance.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. |
abstract void |
trainOnInstanceImpl(MultiLabelInstance instance) |
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getDownSampleRatio, getModel, getModelContext, getModelDescription, getModelMeasurements, getModelMeasurementsImpl, getNominalValueString, getPurposeString, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, resetLearningImpl, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance, updateDownSampleRatio
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, correctlyClassifies, getSubClassifiers, trainOnInstance
getModel, getModelContext, getModelMeasurements, getSublearners, getVotesForInstance, isRandomizable, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
getAWTRenderer
public abstract void trainOnInstanceImpl(MultiLabelInstance instance)
trainOnInstanceImpl
in interface MultiLabelLearner
public void trainOnInstanceImpl(Instance instance)
AbstractClassifier
trainOnInstanceImpl
in class AbstractClassifier
instance
- the instance to be used for trainingpublic Prediction getPredictionForInstance(Example<Instance> example)
getPredictionForInstance
in interface Learner<Example<Instance>>
getPredictionForInstance
in class AbstractClassifier
public Prediction getPredictionForInstance(Instance inst)
Classifier
Instances
. This header is needed to know the number of
classes and attributesgetPredictionForInstance
in interface Classifier
getPredictionForInstance
in class AbstractClassifier
public abstract Prediction getPredictionForInstance(MultiLabelInstance inst)
getPredictionForInstance
in interface MultiLabelLearner
public double[] getVotesForInstance(Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class AbstractClassifier
inst
- the instance to be classifiedCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.