Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Decision Tree

from sklearn import tree

Y = data['Class']
X = data.drop(['Name','Class'],axis=1)

clf = tree.DecisionTreeClassifier(criterion='entropy',max_depth=3)
clf = clf.fit(X, Y)
Source by www.cse.msu.edu #
 
PREVIOUS NEXT
Tagged: #Decision #Tree
ADD COMMENT
Topic
Name
4+9 =