DecisionTreeClassifier.fromMap constructor

DecisionTreeClassifier.fromMap(
  1. Map params
)

Implementation

factory DecisionTreeClassifier.fromMap(Map params) {
  return DecisionTreeClassifier(
      List<int>.from(params["children_left"]),
      List<int>.from(params["children_right"]),
      List<double>.from(params["threshold"]),
      List<int>.from(params["feature"]),
      List<List<dynamic>>.from(params["value"]),
      List<int>.from(params["classes"] ?? []));
}