Six lines of Python is all it takes to write your first machine learning program! In this episode, we’ll briefly introduce what machine learning is and why it’s important. Then, we’ll follow a recipe for supervised learning (a technique to create a classifier from examples) and code it up.

Follow for updates on new episodes!

Subscribe to the Google Developers: –
Subscribe to the brand new Firebase Channel:
And here’s our playlist:

Comments (26)

  1. Doesn't make sense. Nothing was stored in memory or a database. So how does the "machine" retain information in order to learn from the previous guesses?

  2. Can somebody tell me the best source to learn machine learning….Please provide its link too i would be greatful

  3. Awesome! Just wrote a bot for 2048 which learns from me (And I suck lol) using the sklearn toolkit to predict the best move 🙂

  4. But let me know what decision it makes if the data input is out of training data, <100,bumpy what decision it takes? thats why we study machine learning else i could have satisfied with c program itself atleast DOS

  5. code in the video didnt work for me. it shows msg like this >
    AttributeError: module 'sklearn.tree' has no attribute 'DecisionTreeClassifier'

    after that i make some changes and its work!
    from sklearn.tree import DecisionTreeClassifier
    clf = DecisionTreeClassifier()

    #weight in grams
    #0 – bumby 1 – smooth
    labels = [0,0,1,1]
    # 1 – org 0 – apples

    clf =,labels)
    print (clf.predict([[130,1]]))

  6. Wow, google developers that use a mac book. How do I take your video seriously after this?

  7. Problem: every time i type import sklearn or from sklearn imort tree, it gives me a unresolved error. Please help.

Comments are closed.