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

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 (230)

@mananboi006 It should work! If your data set is very simple (like in the tutorial), then often the leaves will be "pure" and the tree will think that it is certain about its answer.

See https://stackoverflow.com/questions/48219986/decisiontreeclassifier-predict-proba-returns-0-or-1

Try a more complicated / larger dataset or a different classifier.