Configurable
, java.io.Serializable
, CapabilitiesHandler
, Classifier
, MultiLabelLearner
, AWTRenderable
, Learner<Example<Instance>>
, MOAObject
, OptionHandler
AbstractAMRulesFunctionBasicMlLearner
, BasicMultiLabelClassifier
public class BasicMultiLabelLearner extends AbstractMultiLabelLearner
Modifier and Type | Field | Description |
---|---|---|
ClassOption |
baseLearnerOption |
|
protected Classifier[] |
ensemble |
|
protected boolean |
hasStarted |
|
protected InstancesHeader[] |
header |
|
IntOption |
randomSeedOption |
classifierRandom, modelContext, randomSeed, trainingWeightSeenByModel
config
Constructor | Description |
---|---|
BasicMultiLabelLearner() |
Modifier and Type | Method | Description |
---|---|---|
void |
getModelDescription(java.lang.StringBuilder out,
int indent) |
Returns a string representation of the model.
|
protected Measurement[] |
getModelMeasurementsImpl() |
Gets the current measurements of this classifier.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. |
Prediction |
getPredictionForInstance(MultiLabelInstance instance) |
|
protected void |
init() |
|
boolean |
isRandomizable() |
Gets whether this learner needs a random seed.
|
void |
resetLearningImpl() |
Resets this classifier.
|
void |
trainOnInstanceImpl(MultiLabelInstance instance) |
|
protected Instance |
transformInstance(MultiLabelInstance inst,
int outputIndex) |
contextIsCompatible, copy, correctlyClassifies, defineImmutableCapabilities, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPurposeString, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
copy, measureByteSize, measureByteSize, toString
getPredictionForInstance, getPredictionForInstance, getVotesForInstance, trainOnInstanceImpl
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
getAWTRenderer
getCapabilities
copy, correctlyClassifies, getSubClassifiers, trainOnInstance
getModel, getModelContext, getModelMeasurements, getSublearners, getVotesForInstance, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getDescription, measureByteSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
public IntOption randomSeedOption
public ClassOption baseLearnerOption
protected Classifier[] ensemble
protected boolean hasStarted
protected InstancesHeader[] header
protected void init()
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class AbstractClassifier
public void trainOnInstanceImpl(MultiLabelInstance instance)
trainOnInstanceImpl
in interface MultiLabelLearner
trainOnInstanceImpl
in class AbstractMultiLabelLearner
protected Instance transformInstance(MultiLabelInstance inst, int outputIndex)
public boolean isRandomizable()
Learner
protected Measurement[] getModelMeasurementsImpl()
AbstractClassifier
getModelMeasurementsImpl
in class AbstractClassifier
public void getModelDescription(java.lang.StringBuilder out, int indent)
AbstractClassifier
getModelDescription
in class AbstractClassifier
out
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic Prediction getPredictionForInstance(MultiLabelInstance instance)
getPredictionForInstance
in interface MultiLabelLearner
getPredictionForInstance
in class AbstractMultiLabelLearner
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.