Classifing Male or Female on body measurements Classifier Machine Learining Practical Get link Facebook X Pinterest Email Other Apps - May 13, 2018 For Professionals and Freshers from sklearn import tree body #A decision tree like full chart that store data x=[[181,80,44],[177,43,80],[160,60,38],[156,65,40],[177,70,40],[171,45,42]] y=['Male','Female','Female','Male','Male','Female'] clf=tree.DecisionTreeClassifier() clf=clf.fit(x,y) prediction=clf.predict([[177,43,80]]) print(prediction) ================================================== Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment