Introduction to Machine Learning with Python and Repl.it
h
GarethDwyer1 (228)

Hey all,

I've written a tutorial to explain basic machine learning concepts and to show how to get started with the great Python scikit-learn library.

I hope it helps, especially if you're taking part or wanting to take part in the Repl.it AI competition!

The tutorial is published over here: https://www.codementor.io/garethdwyer/introduction-to-machine-learning-with-python-and-repl-it-rln7ywkhc

As always, keep the feedback coming!

You are viewing a single comment. View All
GarethDwyer1 (228)

@mananboi006 great question - you can use classifier.predict_proba https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html#sklearn.tree.DecisionTreeClassifier.predict_proba which will give you back a 'score' for each possible label. The predict function just returns the one with the highest score.

I will try to do a follow up on this tutorial to explain how it works with some examples, but for now feel free to shout here i f you don't understand anything