public class MEKAClassifier extends WEKAClassifier
Modifier and Type | Field and Description |
---|---|
protected int |
m_L |
baseLearnerOption, classifier, instancesBuffer, isBufferStoring, isClassificationEnabled, numberInstances, sampleFrequencyOption, widthInitOption, widthOption
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
MEKAClassifier() |
Modifier and Type | Method and Description |
---|---|
void |
setModelContext(InstancesHeader raw_header)
Sets the reference to the header of the data stream.
|
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. |
buildClassifier, createWekaClassifier, getModelDescription, getModelMeasurementsImpl, getPurposeString, getVotesForInstance, isRandomizable, resetLearningImpl
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getSubClassifiers, 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 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 void trainOnInstanceImpl(weka.core.Instance inst)
AbstractClassifier
trainOnInstanceImpl
in class WEKAClassifier
inst
- the instance to be used for trainingCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.