Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

google scikit learn decision tree

>>> from sklearn import tree
>>> X = [[0, 0], [1, 1]]
>>> Y = [0, 1]
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, Y)
Comment

PREVIOUS NEXT
Code Example
Python :: where are docker logs 
Python :: python split string on char 
Python :: import folder from another folder python 
Python :: python sound 
Python :: variable bound to a set python 
Python :: python resample and interpolate 
Python :: python windows api 
Python :: stackoverflow python 
Python :: midpoint circle drawing algorithm 
Python :: cross_val_score scoring parameters types 
Python :: minio python create bucket 
Python :: convert float with missing values to integer 
Python :: python find string in string 
Python :: python remove first element of list 
Python :: python load a txt file and assign a variable 
Python :: .corr() python 
Python :: size pilimage 
Python :: python combine nested for loops 
Python :: dataFrame changed by function 
Python :: # unzip files 
Python :: pyplot x vs y 
Python :: python open zip file 
Python :: first step creating python project 
Python :: python - How to subtract values from dictionaries 
Python :: np random list 
Python :: python while variable is not 
Python :: how does tkinter iconify() function work in python 
Python :: accuracy for each class 
Python :: basic flask api 
Python :: id3 algorithm code in python 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =