Example usage for Java weka.classifiers.lazy IBk fields, constructors, methods, implement or subclass
The text is from its open source code.
IBk(int k) IBk classifier. | |
IBk() IB1 classifer. |
void | buildClassifier(Instances instances) Generates the classifier. |
double | classifyInstance(Instance instance) Classifies the given test instance. |
void | setCrossValidate(boolean newCrossValidate) Sets whether hold-one-out cross-validation will be used to select the best k value. |
void | setDistanceWeighting(SelectedTag newMethod) Sets the distance weighting method used. |
void | setKNN(int k) Set the number of neighbours the learner is to use. |
void | setNearestNeighbourSearchAlgorithm(NearestNeighbourSearch nearestNeighbourSearchAlgorithm) Sets the nearestNeighbourSearch algorithm to be used for finding nearest neighbour(s). |