Package moa.classifiers.multilabel.meta
Class OzaBagAdwinML
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.AbstractClassifier
-
- moa.classifiers.meta.OzaBagAdwin
-
- moa.classifiers.multilabel.meta.OzaBagAdwinML
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,Classifier
,MultiClassClassifier
,MultiLabelLearner
,MultiTargetRegressor
,AWTRenderable
,Learner<Example<Instance>>
,MOAObject
,OptionHandler
public class OzaBagAdwinML extends OzaBagAdwin implements MultiLabelLearner, MultiTargetRegressor
OzaBagAdwinML: Changes the way to compute accuracy as an input for Adwin- Version:
- $Revision: 1 $
- Author:
- Jesse Read
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.classifiers.meta.OzaBagAdwin
ADError, baseLearnerOption, ensemble, ensembleSizeOption
-
Fields inherited from class moa.classifiers.AbstractClassifier
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description OzaBagAdwinML()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Prediction
getPredictionForInstance(MultiLabelInstance instance)
Prediction
getPredictionForInstance(Example<Instance> example)
double[]
getVotesForInstance(Instance inst)
Predicts the class memberships for a given instance.void
trainOnInstanceImpl(Instance inst)
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.void
trainOnInstanceImpl(MultiLabelInstance instance)
-
Methods inherited from class moa.classifiers.meta.OzaBagAdwin
defineImmutableCapabilities, getModelDescription, getModelMeasurementsImpl, getPurposeString, getSubClassifiers, isRandomizable, resetLearningImpl
-
Methods inherited from class moa.classifiers.AbstractClassifier
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
-
Methods inherited from class moa.options.AbstractOptionHandler
getCLICreationString, getOptions, getPreparedClassOption, 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.gui.AWTRenderable
getAWTRenderer
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.classifiers.Classifier
copy, correctlyClassifies, getPredictionForInstance, getSubClassifiers, trainOnInstance
-
Methods inherited from interface moa.learners.Learner
getModel, getModelContext, getModelMeasurements, getSublearners, getVotesForInstance, isRandomizable, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Method Detail
-
trainOnInstanceImpl
public void trainOnInstanceImpl(Instance inst)
Description copied from class:AbstractClassifier
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. Note that this will produce compiler errors if not overridden.- Overrides:
trainOnInstanceImpl
in classOzaBagAdwin
- Parameters:
inst
- the instance to be used for training
-
trainOnInstanceImpl
public void trainOnInstanceImpl(MultiLabelInstance instance)
- Specified by:
trainOnInstanceImpl
in interfaceMultiLabelLearner
-
getPredictionForInstance
public Prediction getPredictionForInstance(Example<Instance> example)
- Specified by:
getPredictionForInstance
in interfaceLearner<Example<Instance>>
- Overrides:
getPredictionForInstance
in classAbstractClassifier
-
getVotesForInstance
public double[] getVotesForInstance(Instance inst)
Description copied from interface:Classifier
Predicts the class memberships for a given instance. If an instance is unclassified, the returned array elements must be all zero.- Specified by:
getVotesForInstance
in interfaceClassifier
- Overrides:
getVotesForInstance
in classOzaBagAdwin
- Parameters:
inst
- the instance to be classified- Returns:
- an array containing the estimated membership probabilities of the test instance in each class
-
getPredictionForInstance
public Prediction getPredictionForInstance(MultiLabelInstance instance)
- Specified by:
getPredictionForInstance
in interfaceMultiLabelLearner
-
-