public class OzaBagASHT extends OzaBag
OzaBagASHT -l ASHoeffdingTree -s 10 -u -r
Parameters:OzaBag
Modifier and Type | Field and Description |
---|---|
protected double |
alpha |
protected double[] |
error |
IntOption |
firstClassifierSizeOption |
FlagOption |
resetTreesOption |
FlagOption |
useWeightOption |
baseLearnerOption, ensemble, ensembleSizeOption
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
OzaBagASHT() |
Modifier and Type | Method and Description |
---|---|
void |
getModelDescription(StringBuilder out,
int indent)
Returns a string representation of the model.
|
String |
getPurposeString()
Gets the purpose of this object
|
double[] |
getVotesForInstance(weka.core.Instance inst)
Predicts the class memberships for a given instance.
|
void |
resetLearningImpl()
Resets this classifier.
|
void |
trainOnInstanceImpl(weka.core.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. |
getModelMeasurementsImpl, getSubClassifiers, isRandomizable
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, 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 IntOption firstClassifierSizeOption
public FlagOption useWeightOption
public FlagOption resetTreesOption
protected double[] error
protected double alpha
public String getPurposeString()
OptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class OzaBag
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class OzaBag
public void trainOnInstanceImpl(weka.core.Instance inst)
AbstractClassifier
trainOnInstanceImpl
in class OzaBag
inst
- the instance to be used for trainingpublic double[] getVotesForInstance(weka.core.Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class OzaBag
inst
- the instance to be classifiedpublic void getModelDescription(StringBuilder out, int indent)
AbstractClassifier
getModelDescription
in class OzaBag
out
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.