Packages

object KNN_Classifier

The KNN_Classifier companion object provides a factory method.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KNN_Classifier
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(xy: MatriD, fn: Array[String], k: Int, cn: Array[String], kappa: Int = 3): KNN_Classifier

    Create a KNN_Classifier classifier from a joint 'xy' matrix

    Create a KNN_Classifier classifier from a joint 'xy' matrix

    fn

    the names for all features/variables

    k

    the number of classes

    cn

    the names for all classes

    kappa

    the number of nearest neighbors to consider