DecisionTreeClassifier class
An implementation of sklearn.tree.DecisionTreeClassifier.
https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html
- Inheritance
-
- Object
- Classifier
- DecisionTreeClassifier
Constructors
-
DecisionTreeClassifier(List<
int> childrenLeft, List<int> childrenRight, List<double> threshold, List<int> features, List<List> values, List<int> classes) - To manually instantiate the DecisionTreeClassifier. The parameters are lifted directly from scikit-learn. See the attributes here: https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html
- DecisionTreeClassifier.fromMap(Map params)
-
factory
Properties
-
childrenLeft
↔ List<
int> -
getter/setter pair
-
childrenRight
↔ List<
int> -
getter/setter pair
-
classes
↔ List<
int> -
getter/setter pair
-
features
↔ List<
int> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
threshold
↔ List<
double> -
getter/setter pair
-
values
↔ List<
List> -
getter/setter pair
Methods
-
fromURL(
String url) → dynamic -
Override in all classes extending Classifier.
Load a model from a URL using an HTTP request
@TODO
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predict(
List< double> X) → int -
Implementation of sklearn.tree.DecisionTreeClassifier.predict.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited