KNeighborsClassifier.fromMap constructor

KNeighborsClassifier.fromMap(
  1. Map<String, dynamic> params
)

Implementation

factory KNeighborsClassifier.fromMap(Map<String, dynamic> params) {
  return KNeighborsClassifier(
      List<List<dynamic>>.from(params["_fit_X"]),
      List<int>.from(params["_y"]),
      params["n_neighbors"],
      params["p"],
      List<int>.from(params["classes_"]));
}