public class MLOzaBag extends OzaBag
Modifier and Type | Field and Description |
---|---|
protected int |
m_L |
baseLearnerOption, ensemble, ensembleSizeOption
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
MLOzaBag() |
Modifier and Type | Method and Description |
---|---|
double[] |
getVotesForInstance(weka.core.Instance x)
Predicts the class memberships for a given instance.
|
boolean |
isRandomizable()
Gets whether this classifier needs a random seed.
|
void |
resetLearningImpl()
Resets this classifier.
|
void |
setModelContext(InstancesHeader raw_header)
Sets the reference to the header of the data stream.
|
getModelDescription, getModelMeasurementsImpl, getPurposeString, getSubClassifiers, trainOnInstanceImpl
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class OzaBag
public void setModelContext(InstancesHeader raw_header)
Classifier
Instances
.
This header is needed to know the number of classes and attributessetModelContext
in interface Classifier
setModelContext
in class AbstractClassifier
raw_header
- the reference to the data stream headerpublic boolean isRandomizable()
Classifier
isRandomizable
in interface Classifier
isRandomizable
in class OzaBag
public double[] getVotesForInstance(weka.core.Instance x)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class OzaBag
x
- the instance to be classifiedCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.