Skip to content

ml.knn

ml.knn implements K-nearest-neighbour classification, mapping an input feature vector to output value(s). Add training examples as lists containing a class ID followed by features, then send train before using map; the k message sets how many nearest neighbours are searched during prediction.


AI Generated

This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.


  • Download via Deken.

    Open Pd and go to ToolsFind Externals. Search for ml.lib and install it. Then create an object with declare -lib ml.lib -path ml.lib. Finally, use ml.knn or any other object from ml.lib.

  • Available for .

Similar


    Comments

    Contributors