Classifing Male or Female on body measurements Classifier Machine Learining Practical


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)

 ==================================================

 


Comments

Popular posts from this blog

Filter In Javafx

Kotlin with StandAlone Complier