Python sklearn.tree.ExtraTreeClassifier() Examples
The following are 2
code examples of sklearn.tree.ExtraTreeClassifier().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sklearn.tree
, or try the search function
.
Example #1
Source File: SeparateTrees.py From Cytomine-python-datamining with Apache License 2.0 | 5 votes |
def build_separate_tree(X,y,max_features,max_depth,min_samples_split): clf = ExtraTreeClassifier(max_features=max_features,max_depth=max_depth,min_samples_split=min_samples_split) clf = clf.fit(X,y) return clf
Example #2
Source File: test_tree.py From pandas-ml with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_objectmapper(self): df = pdml.ModelFrame([]) self.assertIs(df.tree.DecisionTreeClassifier, tree.DecisionTreeClassifier) self.assertIs(df.tree.DecisionTreeRegressor, tree.DecisionTreeRegressor) self.assertIs(df.tree.ExtraTreeClassifier, tree.ExtraTreeClassifier) self.assertIs(df.tree.ExtraTreeRegressor, tree.ExtraTreeRegressor) self.assertIs(df.tree.export_graphviz, tree.export_graphviz)