KNeighborsClassifier constructor

KNeighborsClassifier(
  1. List<List> fitX,
  2. List<int> fitY,
  3. int nNeighbors,
  4. int p,
  5. List<int> classes,
)

To manually instantiate the KNeighborsClassifier. The parameters are lifted directly from scikit-learn. See the attributes here: https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html

Implementation

KNeighborsClassifier(
    this.fitX, this.fitY, this.nNeighbors, this.p, this.classes);