GUVI
Back

code is correct but it is show error

Created 3 years ago
24 Views
2 Comments
SridharHKpZag
@SridharHKpZag
SridharHKpZag
@SridharHKpZagProfile is locked. Login
import sklearn from sklearn import tree features = [[2,100],[6,25],[1,300],[1,1000],[4,100],[10,100]] Label = [1,2,1,1,2,2] clf = tree.DecisionTreeClassifier() clf = clf.fit(feature,Label) print(clf.predict([[2,100]]))
Comments (2)
Please login to comment.
 
Powered by habitate.io Habitate