GUVI
Back

ML assignment

Created 2 years ago
35 Views
0 Comments
MohammedIFcDR5
@MohammedIFcDR5
MohammedIFcDR5
@MohammedIFcDR5Profile is locked. Login

I am trying to submit my ml assignment ..but it shows as maximum time limited....where in I placed the correct code .

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(features,label)

print(clf.predict([[4,140]]))

Comments
Please login to comment.
 
Powered by habitate.io Habitate