public class kNNwithPAW extends kNN
Valid options are:
-k number of neighbours
| Modifier and Type | Field and Description |
|---|---|
protected int |
marker |
protected double |
prob |
kOption, limitOption, nearestNeighbourSearchOption, windowclassifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModelclassOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
kNNwithPAW() |
| 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
|
boolean |
isRandomizable()
Gets whether this classifier needs a random seed.
|
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, getVotesForInstance, setModelContextcontextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getSubClassifiers, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstancediscoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCLICreationString, getOptions, prepareForUse, prepareForUsemeasureByteSizepublic String getPurposeString()
OptionHandlergetPurposeString in interface OptionHandlergetPurposeString in class kNNpublic void resetLearningImpl()
AbstractClassifierresetLearningImpl in class kNNpublic void trainOnInstanceImpl(weka.core.Instance inst)
AbstractClassifiertrainOnInstanceImpl in class kNNinst - the instance to be used for trainingpublic void getModelDescription(StringBuilder out, int indent)
AbstractClassifiergetModelDescription in class kNNout - the stringbuilder to add the descriptionindent - the number of characters to indentpublic boolean isRandomizable()
ClassifierisRandomizable in interface ClassifierisRandomizable in class kNNCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.