add entropy
This commit is contained in:
parent
a68cdb94c0
commit
f49d0069c1
@ -2,6 +2,6 @@ from sklearn import tree
|
||||
|
||||
|
||||
def make_tree(maps, actions):
|
||||
clf = tree.DecisionTreeClassifier()
|
||||
clf = tree.DecisionTreeClassifier(criterion="entropy")
|
||||
clf = clf.fit(maps, actions)
|
||||
return clf
|
||||
|
Loading…
Reference in New Issue
Block a user