XXXX

XX

XXXX,XX

C:\Users\swy>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from sklearn import tree
>>> X=[[1,2],[3,4]]
>>> Y=[1,3]
>>> clf=tree.DecisionTreeClassifier()
>>> clf=clf.fit(X,Y)
>>>

你可能感兴趣的:(浮生日记)