Hello World - Machine Learning Recipes #1

  Рет қаралды 2,674,804

Google for Developers

Google for Developers

Күн бұрын

Пікірлер: 1 300
@codebasics
@codebasics 3 жыл бұрын
Awesome video, thanks for the insightful conversation over a lunch yesterday. It was awesome meeting with you in person :) Keep up the good work Josh.
@vi-vf5fv
@vi-vf5fv 8 жыл бұрын
For Python3, please note the video does not meet the new syntax. Also note that the video shows 150,0 in the print. It should be 160, 0. To get it to run use: from sklearn import tree features = [[140,1],[130,1],[150,1],[170,0]] labels = [0,0,1,1] clf = tree.DecisionTreeClassifier() clf = clf.fit(features, labels) print(clf.predict([[160,0]]))
@tjarkraabe5123
@tjarkraabe5123 8 жыл бұрын
Thank you a lot!
@phleugh
@phleugh 8 жыл бұрын
I think your [150,1] should read [150,0].
@gnostict0n1
@gnostict0n1 8 жыл бұрын
Thanks Matthew!
@manojguha2046
@manojguha2046 8 жыл бұрын
Thank you very much
@Paretozen
@Paretozen 8 жыл бұрын
When I run the code, my IDE (PyCharm) infers from clf.fit() an object, giving an error on code completion. This made me think my code was wrong. Is there a way to cast or explicitly define a type? I'm fine with no intellisense, just don't like seeing errors :)
@dmcdeezy
@dmcdeezy 8 жыл бұрын
I have never commented or subscribed to a channel on KZbin. This is how excited I am about this series.
@amomasi9909
@amomasi9909 5 жыл бұрын
It all goes downhill from here, mate. Soon you'll be in political debates. Good luck!
@igorrocha1845
@igorrocha1845 4 жыл бұрын
@@amomasi9909 kkkkkk
@quantummath
@quantummath 8 жыл бұрын
Thanks a lot for your articulate presentation.
@jimmylarsson6523
@jimmylarsson6523 8 жыл бұрын
This is so cool. I just started learning Python, with Machine Learning being the goal, and this is very easy to follow.
@maxdegreat566
@maxdegreat566 3 жыл бұрын
How's it going
@reymote2000
@reymote2000 3 жыл бұрын
This is the first ML tutorial that spoke to me as a student, not someone who is in a seminar for advanced types. Thank you!
@NoReason1111
@NoReason1111 7 жыл бұрын
hey there, it was a nice lecture. Anyways there is an error ... ur code will run if u change the following like from this: print clf.predict([[160, 0]]) to this: print (clf.predict([[160, 0]])) Because In python 3 the print function must have parenthesis, so print(clf.predict([[150, 0]])) I had this error so I thought this might help u also :)
@alexli3118
@alexli3118 7 жыл бұрын
Thanks this helped! I kept on getting that error
@TroubleMakery
@TroubleMakery 5 жыл бұрын
It isn’t an error, he used python 2.7
@flueepwrien6587
@flueepwrien6587 5 жыл бұрын
@@TroubleMakery smart boy
@BrotoBhattacharjee
@BrotoBhattacharjee 5 жыл бұрын
@@TroubleMakery exactly .. paranthesis got mandatory from Python3
@gabriel9668
@gabriel9668 5 жыл бұрын
He installed py 2, not 3
@rudrakshya1
@rudrakshya1 6 жыл бұрын
I have completed Coursera, udemy machine learning A-Z. Udacity course. But this is a Best getting started I have ever seen for a developer.
@giuliofagioli
@giuliofagioli 8 жыл бұрын
Awesome, can't wait for next episode!
@JBGordon
@JBGordon 8 жыл бұрын
+Giulio Fagioli Thanks! I'm glad these are helpful. Working on more soon.
@kuaranir2440
@kuaranir2440 5 жыл бұрын
@@JBGordon Finally, due to you, i have dived into ML :) Thanks)
@jinxblaze
@jinxblaze 8 жыл бұрын
This is the perfect way to teach something, explain the history, explain its uses , explain how it originated, explain how people came up with this etc.
@leep3488
@leep3488 8 жыл бұрын
Awesome! I didnt know machine learning was at the point that libraries could abstract the complexity this much. Finally I can wet my feet in this! Looking forward to the new videos!
@PeymanEmamian
@PeymanEmamian 8 жыл бұрын
This was much better than some random guy (although smart) sitting in front of camera for 500 minutes and trying to explain stuff. I like it. keep it coming.
@Wintran
@Wintran 8 жыл бұрын
Great video! I love that you show machine learning with tabular data instead of going straight into image recognition like so many other guides. Personally, I'm more interested in statistical data analysis rather than image recognition. Would love to see the same data classified through a TensorFlow neural network. Keep up the great work!
@manveersingh5822
@manveersingh5822 7 жыл бұрын
I am fascinated by the ML. My GOD, I tested with many other types of data and it made the correct predictions 99% of the time. Thanks for an amazing concise video. GOOGLE is best in everything.
@vishalsheth1888
@vishalsheth1888 8 жыл бұрын
Awesome video! Would be more helpful if the links are in the description below.
@hrushikeshjoshi8116
@hrushikeshjoshi8116 6 жыл бұрын
Exactly..
@donquixoterosinante7899
@donquixoterosinante7899 5 жыл бұрын
He's forcing you to google it.. lmao
@duncancarr7822
@duncancarr7822 8 жыл бұрын
Thank you! I've watched tens of hours on ML in an effort to find something digestible. And I got the example working! I am so happy. I imagine it is expected behaviour - although I don't understand why ... if I print ( clf.predict([[155, 0]]) ), and print ( clf.predict([[155, 1]]) ) repeatedly I get differing results. I get mostly [1][0], but on occasion I get [1][1]. I used 155 as it is dead centre of 140 & 170.
@gagginaspinnata
@gagginaspinnata 8 жыл бұрын
Love this kind of video on ML. Looking forward for new video!
@JBGordon
@JBGordon 8 жыл бұрын
+gagginaspinnata Thanks for the friendly feedback! Appreciated.
@JohnJohnson-xt7zf
@JohnJohnson-xt7zf 5 жыл бұрын
This is hands-down the easiest most concise explanation of ML I have ever heard.
@RoyalBengalCub
@RoyalBengalCub 4 жыл бұрын
Hi Payne, We are researchers in human-computer interaction (HCI) looking for people who have taken an initiative to recently learn Machine Learning on their own, for career, course or curiosity. It seems you are in that place currently. Would you mind telling us here (www.surveymonkey.ca/r/SelfLearning_ML) about your experiences and any difficulties you faced while self-teaching ML and how you overcame them. There is also a chance to win $50 giftcard. You can help this project by taking out 5-10 minutes to participate in our study. For more details, see here: www.surveymonkey.ca/r/SelfLearning_ML Please share this request with your colleagues or friends who fit this description. People from any major/background may participate. The survey will be open until July 20, 2020.
@LucasLima-yy5qp
@LucasLima-yy5qp 5 жыл бұрын
#version: 3.7.2 from sklearn import tree features = [[140, 1], [130, 1], [150, 0], [170, 0]] labels = ['Orange', 'Orange', 'Apple', 'Apple'] clf = tree.DecisionTreeClassifier() clf = clf.fit(features, labels) print clf.predict([[145,1]])
@manavkalra5279
@manavkalra5279 5 жыл бұрын
thank youu, i'm lazy af 😂
@bhavikakapadia2462
@bhavikakapadia2462 5 жыл бұрын
Thanks
@RoylanMartinez
@RoylanMartinez 5 жыл бұрын
#version: 4.4.0 from sklearn import tree features = [[140, 1], [130, 1], [150, 0], [170, 0]] labels = ['Orange', 'Orange', 'Apple', 'Apple'] clf = tree.DecisionTreeClassifier() clf = clf.fit(features, labels) print(clf.predict([[145,1]]))
@QkdflQkdfl
@QkdflQkdfl 5 жыл бұрын
Thank you so much
@ryank.6033
@ryank.6033 5 жыл бұрын
I wish I could give you a million likes
@zebcode
@zebcode 7 жыл бұрын
There are loads of fantastic resources into Machine Learning with AI. This has to be one of the best! Thank you Google and Josh Gordon. I really like the presenting style and the enthusiasm that shines through during this tutorial. I get genuinely excited when I start watching this.
@TheAutophage
@TheAutophage 5 жыл бұрын
If anyone has trouble with installing the needed software I highly recommend you to first watch this small video Python Machine Learning Tutorial #1 - Introduction from the youtube channel Tech With Tim and then come back to this video.
@science_mbg
@science_mbg 7 жыл бұрын
Your voice is so smooth that makes it easy to grasp I think. I will continue to watch other episodes thanks
@mahithbhima2064
@mahithbhima2064 6 жыл бұрын
This guy just by standing in a single position could explain way better than what our profs could by roaming in the entire room.
@homeygdoggydogg
@homeygdoggydogg Жыл бұрын
sounds like you were a terrible student
@Jooma008
@Jooma008 7 жыл бұрын
Cant believe these lessons are free. Thanks google!
@BijoySKochar
@BijoySKochar 8 жыл бұрын
While I've worked a lot on ML and scikit, I am so sure, this is gonna be a show I'll see till the end! Great work Google :D
@JBGordon
@JBGordon 8 жыл бұрын
+Bijoy Singh Thanks! I'm a big fan of scikit. There's a cool library worth checking out - github.com/tensorflow/skflow - that provides a scikit-like interface to TensorFlow.
@rubeniaborge4652
@rubeniaborge4652 6 жыл бұрын
Have you worked with graphviz before? Do you know why it gives this error? ModuleNotFoundError: No module named 'graphviz'?
@sarathchandran2815
@sarathchandran2815 7 жыл бұрын
Having knowledge is common,but having the mind to share it with others is great.
@AbdulMuneerInd
@AbdulMuneerInd 8 жыл бұрын
This is very helpful. Thank you! I'm checking this playlist everyday for the next entries :)
@kenreid3106
@kenreid3106 7 жыл бұрын
I have trolled thru a lot of training videos but you sir are a master. You really can get a point across and simplify the hard to understand. Thank You, please do more!
@laugernberg4817
@laugernberg4817 8 жыл бұрын
if it can detect sarcasm, ill donate 10$....
@angryguy5532
@angryguy5532 6 жыл бұрын
very funny guy
@ComputerProgrammingUniversity
@ComputerProgrammingUniversity 6 жыл бұрын
0
@bay8834
@bay8834 6 жыл бұрын
I m confided
@NachoMan154
@NachoMan154 6 жыл бұрын
"Sarcasm is "a sharp, bitter, or cutting expression or remark; a bitter gibe or taunt". Sarcasm may employ ambivalence, although sarcasm is not necessarily ironic." en.wikipedia.org/wiki/Sarcasm ;-)
@foriwill7384
@foriwill7384 5 жыл бұрын
Hey, sometimes i can't even detect sarcasm
@thinker_211
@thinker_211 4 жыл бұрын
So far so clear, im a professional machine learning programmer now. Thank you!
@forzagreen
@forzagreen 8 жыл бұрын
if you want to copy paste the code: ------------------------ from sklearn import tree features = [[140, 1], [130, 1], [150, 0], [170, 0]] labels = [0, 0, 1, 1] clf = tree.DecisionTreeClassifier() clf = clf.fit(features, labels) print clf.predict([[150, 0]])
@itsmemasud
@itsmemasud 8 жыл бұрын
+forzagreen I installed the anaconda but where should I do to write the code? I tried with Spyder but an INVALID SYNTAX message shows up as following: print clf.predict([150, 0]) ^ SyntaxError: invalid syntax Can you help me on this?
@forzagreen
@forzagreen 8 жыл бұрын
I guess it's because you are using Python 3. Try with print( clf.predict([150, 0]) )
@itsmemasud
@itsmemasud 8 жыл бұрын
+forzagreen After watching your comment I tried with print( clf.predict([[150, 0]]) ) & yahoo it worked but interestingly I installed Python 2.7.11 |Anaconda 4.0.0 (64-bit). Should I use python 3 ?
@IgorOrlov
@IgorOrlov 7 жыл бұрын
help print( clf.predict([150, 0]) ) - SyntaxError: invalid character in identifier
@thiagof9475
@thiagof9475 7 жыл бұрын
Igor , i guess that is print( clf.predict([[150, 0]]) ) you are using a pair of [ ] and its 2 [[ ]] =)
@marn200
@marn200 6 жыл бұрын
This is a very clear explanation, I've more learned here in a few minutes than in over all websearch
@kentonbanyai7917
@kentonbanyai7917 5 жыл бұрын
Well thats not fair, you can't compare apples and oranges
@oofusmcdoofus
@oofusmcdoofus 5 жыл бұрын
But you can differentiate
@dakshshah2972
@dakshshah2972 3 жыл бұрын
You aren't comparing apples and oranges. You're comparing images, and then classifying them as either apples or oranges.
@meaniljangra
@meaniljangra 7 жыл бұрын
I didn't have any idea of machine learning (ML) but after watching this video I know what ML is. This video is too good.
@011azr
@011azr 8 жыл бұрын
Please continue, buddy! I'd love to see more of your easy-to-understand explanations :). Thanks a lot!!!
@shubhamgorlewar3653
@shubhamgorlewar3653 6 жыл бұрын
Good 1 to start with ML. Presenter is clear and confident .
@nishparadox
@nishparadox 8 жыл бұрын
looking forward to more of these.
@adarshashokplr
@adarshashokplr 7 жыл бұрын
The easiest introduction ever seen in the internet , for ML, Thank you
@BALLAsTvDotCom
@BALLAsTvDotCom 8 жыл бұрын
omg release them all please!!!!
@joshuaporitz4206
@joshuaporitz4206 8 жыл бұрын
One of the best videos on Machine Learning I've seen. Can't wait for the next one!
@MOHSINALI-uw5kt
@MOHSINALI-uw5kt 6 жыл бұрын
print(clf.predict([[150,0]])) after print there should be ( )
@Solid_Fuel
@Solid_Fuel 5 жыл бұрын
well yes. you are correct, but only in cases where the version of python is 3.x The code shown in the video is written in python 2. Therefore, it is written without parentheses.
@pointless132
@pointless132 5 жыл бұрын
understanding = False if understanding : print ("wat?") else: print ("wat?") ==> wat?
@ahmadbilal3568
@ahmadbilal3568 6 жыл бұрын
I have taken some machine learning courses, but Seriously Man the way you have teach them is the Best (Thumbs UP)
@jinxblaze
@jinxblaze 8 жыл бұрын
Damn, so much better than my uni teachers all combined !
@fmartins4861
@fmartins4861 8 жыл бұрын
hahahha :D
@theshauryasinghofficial
@theshauryasinghofficial 7 жыл бұрын
where to write this code... i have downloaded anaconda ?
@akshitkumar9402
@akshitkumar9402 5 жыл бұрын
@@theshauryasinghofficial in the ide
@akshitkumar9402
@akshitkumar9402 5 жыл бұрын
@@theshauryasinghofficial use jupyter
@brianandbrain
@brianandbrain 6 жыл бұрын
This is a really nice, unbiased, beginner friendly introduction to machine learning!
@JamesCoyle95
@JamesCoyle95 8 жыл бұрын
So you will be covering what that library is doing so it could be implemented ourselves? It makes sense for the first video but I kinda hate tutorials that 'solve' a problem by using a library rather than explaining the theory and how it actually works.
@AsifMehedi
@AsifMehedi 8 жыл бұрын
+James Coyle It's too early to judge. You may like Andrew Ng's course on Coursera, if you want to understand the concepts.
@JBGordon
@JBGordon 8 жыл бұрын
+James Coyle Absolutely! That's the plan. In the next episode, we'll go into a bit more depth on how decision trees work under the hood. We won't get to building one from scratch for a few episodes, though. For a *great* tutorial, check out one of my favorite books: shop.oreilly.com/product/9780596529321.do
@Wintran
@Wintran 8 жыл бұрын
+James Coyle I think it depends on your needs. I'm actually of the opposite opinion. I dislike tutorials where they teach you everything at the lowest level from start, with too much theory. I want to get up and running fast, learn from examples, and learn to use the best libraries out there. But I agree with you that I want to have a general understanding of what I'm doing, which could be summarized in a few minutes by a good teacher, or included in well-commented example code. Once I get something up and running, I might want to learn more about the algorithms behind it. However, writing a library from scratch is to me never an option. To build your own library that competes against the best ones out there you would not have much time over to actually use it.
@JamesCoyle95
@JamesCoyle95 8 жыл бұрын
Wintran I find libraries are great when you need to interface with something you have no control over or when the task is so complex yet can only really be done in one way. When that is not the case I prefer programming it myself so I have complete control over what happens, how fast it is, how much memory it uses etc. The main problem with many web related tutorials is they usually jump in with 'look how great this jQuery library is, isn't jQuery the best'. It's useless if I need to code in pure JS or even if I need to convert the concept to another language altogether.
@HivusLibrevilleThiephyst
@HivusLibrevilleThiephyst 4 жыл бұрын
I paid more than $50 for online course that can't explain as clear as this channel did. Good job Google
@Mjiujtsu
@Mjiujtsu 8 жыл бұрын
Do you want to install sklearn and follow what he is doing? here's what I did. i have Python 3.5 and windows-64 initially with no other packages installed, so this is "from scratch" you can find out what version of python you have by finding the folder python got installed to, mine was :"C:\Users\Marco\AppData\Local\Programs\Python\Python35-32" but i might have changed that when i installed i cant remember... anyway sklearn requires scipy, scipy requires numpy and nose 1. download numpy usually you can use something called "pip" from the command line which is some magic for downloading packages like sklearn, however, pip is not compatible with scipy and therefore you need to download a (very) slightly different version from: "www.lfd.uci.edu/~gohlke/pythonlibs/" - a site full of windows installers for packages, just use Ctrl+F to find "scipy-0.18.0-cp35-cp35m-win32.whl", you will see mention of MKL included, -that's the small difference i mentioned- .whl is wheel file. if you use pip for this step you'll get and error :"cannot import name 'NUMPY_MKL'" when trying to use scipy NOTE: the cp 35 means that one is for python 3.5, this is the only version that worked for me even though i thought i'd need the win64 version next to it 2.you need to open the command line terminal using "Win + R" and type in "cmd", then type in python -m pip install TheWheelFileName and hit enter, for me, it installed 3. install nose this, i did by pip and encountered no problems with scipy, so in the terminal again type: python -m pip install nose 4. install scipy do the same as you did for installing numpy+MKL, except find scipy on that website, download that and use python -m pip install TheWheelFileName ...again 5. install sklearn the same as installing nose, just do it from the command line using pip python -m pip install sklearn 6. test everything worked by writing into a python module try: import numpy except ImportError: print("fml") try: import scipy except ImportError: print("fml again") figuring this out took me all day, so i really hope that this helps you, because stack overflow can be a bit of a pain sometimes. i found out how to do the pip stuff from the Python Documentation, which has a great part about "Installing modules" and specifically mentions how scipy is not compatible with pip and gave me the link to that website. Have fun with machine learning, praise be to our future robot over lords
@synetic707x
@synetic707x 8 жыл бұрын
Or you just install anaconda and a python IDE ..
@teleunivsolutions3194
@teleunivsolutions3194 7 жыл бұрын
kzbin.info/www/bejne/ZnvCnnRjhZyNoMk
@iamsubhrajit10
@iamsubhrajit10 6 жыл бұрын
thanks buddy
@omg_look_behind_you
@omg_look_behind_you 6 жыл бұрын
just like ma used to make
@nokuphilasimelane5091
@nokuphilasimelane5091 6 жыл бұрын
WOW!!! This is the best explanation of ML ever! Clear and Simple, will watch the rest of the series😃
@SirajRaval
@SirajRaval 8 жыл бұрын
Hell yeah! If you guys like machine learning check out my new ML series on my channel.
@logancarvalho
@logancarvalho 8 жыл бұрын
which software is he using for importing sklearn?
@MichaelBuergerArt
@MichaelBuergerArt 8 жыл бұрын
anaconda
@williamfosterXD
@williamfosterXD 8 жыл бұрын
just came from there, it was great!
@סרטוניםבעמ
@סרטוניםבעמ 8 жыл бұрын
you have a great channel!
@SirajRaval
@SirajRaval 8 жыл бұрын
thanks so much!!
@Phorsakened
@Phorsakened 6 жыл бұрын
it seems a great and revolutionary move from google that brings courses like this to all . also the main great feature is the simple explanations.
@Phoenix-flame98
@Phoenix-flame98 6 жыл бұрын
Your tutorial was very useful, thank you.
@siamakshams1923
@siamakshams1923 4 жыл бұрын
The following code helped me understand the concept: from sklearn import tree apple = 1 orange = 0 smooth = 1 bumpy = 0 features = [[140, smooth], [130, smooth], [150, bumpy], [170, bumpy]] labels = [apple, apple, orange, orange] clf = tree.DecisionTreeClassifier() clf = clf.fit(features, labels) if clf.predict([[150, bumpy]]): print ("Apple") else: print ("Orange")
@DomViking
@DomViking 8 жыл бұрын
More of this please :) Just a side note, I received a deprecation warning while testing the code that read: "Passing 1d arrays as data is deprecated in 0.17".
@itsmemasud
@itsmemasud 8 жыл бұрын
+Glyn Jackson I installed the anaconda but where should I do to write the code? I tried with Spyder but an INVALID SYNTAX message shows up as following: print clf.predict([150, 0]) ^ SyntaxError: invalid syntax Can you help me on this?
@vinexio1731
@vinexio1731 8 жыл бұрын
+Shoaib Ahmed there must be double parentheses after print in python 3 like "print(clf.predict([[150,0]]))"
@itsmemasud
@itsmemasud 8 жыл бұрын
Vine Xio hey its working after adding parenthesis .. thanks (Y)
@Zockermaniac
@Zockermaniac 5 жыл бұрын
@@itsmemasud print clf.predict([150, 0]) -> print clf.predict([[150, 0]]) for versions 2.x for version 3.x it's print(clf.predict([[150, 0]])) so 2.x = print "text" and 3.x is print("text")
@Mjiujtsu
@Mjiujtsu 8 жыл бұрын
man im so happy; i spent all day installing libraries, given that before today i have only tried to install numpy, and failed, and gave up, today i was more determined, but im finally done and i just ran the code he shows at 5:37 and it worked... to save someone the time of all the googling and bs that i did today ill leave another comment with how i did it
@KawsarJami
@KawsarJami 7 жыл бұрын
please help me, how do i import sklearn module? here shows: ImportError: No module named sklearn, note that i am using sublime text and i installed scikit learn also, help plz
@crestfallen706
@crestfallen706 8 жыл бұрын
this video helped me out a lot looking forward to more videos. switching from software engineering to ML seemed like daunting task but you simplified it, thank you.
@jim0_o
@jim0_o 8 жыл бұрын
I really want to follow a series like this, but at the moment you connect the code together with a gray-code-cloud I'm supposed to accept does a thing and ignore(a library) it just becomes distracting or it feels worthless like I learned something worthless because its all dependent on that gray-code-cloud.
@SoDamnMetal
@SoDamnMetal 5 жыл бұрын
I agree
@Molloy07
@Molloy07 7 жыл бұрын
This is by far the best intro to machine learning I have come across :)
@robrobbins
@robrobbins 7 жыл бұрын
This tutorial could use a little more information on how to use Anaconda. I found Anaconda Navigator and gave the spyder (Scientific PYthon Development EnviRonment) IDE a try and it worked.
@podlucka
@podlucka 7 жыл бұрын
lol, thanks for this comment ;)
@mortenbellmann6972
@mortenbellmann6972 6 жыл бұрын
Really clear speech, fitting speed, really informative!
@AngelusMortis1000
@AngelusMortis1000 8 жыл бұрын
I haven't properly payed attention, but I love your voice.
@bananacluster
@bananacluster 5 жыл бұрын
Outstanding communicative clarity! How rare.
@김진우-q7e
@김진우-q7e 7 жыл бұрын
What should I use IDE in the window?(or recommendation) and tell me how to import(install) sklearn(scikit-learn) in that IDE(you show me)
@i.d432
@i.d432 5 жыл бұрын
yes all these videos make it sound like you just wave your hands and everything is installed
@themerpheus
@themerpheus 8 жыл бұрын
So,thanks soo much google folks.I wanted to start machine learning,but I have no idea about that.This episodes gives an idea.
@SuviTuuliAllan
@SuviTuuliAllan 8 жыл бұрын
This guy is a robot.
@vijayRT
@vijayRT 8 жыл бұрын
+Suvi-Tuuli Allan You mean, he's a "machine" Yeah bad joke. I'll see my way out.
@assafeldman
@assafeldman 8 жыл бұрын
+Suvi-Tuuli Allan this guy is not just any robot, its Data
@chwayalokmen8203
@chwayalokmen8203 6 жыл бұрын
I have never commented to a channel on KZbin! Thanks a lot Sir.
@swapanjain892
@swapanjain892 8 жыл бұрын
when will the next one come out?
@tytube3001
@tytube3001 8 жыл бұрын
+SWAPAN JAIN when you stop touching yourself
@nopopolasturber
@nopopolasturber 8 жыл бұрын
+SWAPAN JAIN seeing as the #2 episode is up, I admire your self-control and willpower.
@PrgramedtoMaster
@PrgramedtoMaster 8 жыл бұрын
+Nopopo Lasturber seeing as he wrote that a week ago, I admire your power of observation.
@theshauryasinghofficial
@theshauryasinghofficial 7 жыл бұрын
where to write this code... i have downloaded anaconda ?
@howardyang2517
@howardyang2517 6 жыл бұрын
Not sure if you're still looking after 5 months XD But type it into your text editor and run on your terminal. Go here: learnpythonthehardway.org/book/ex0.html for a quick guide to the difference between terminals and editors
@rohitmotdhare5688
@rohitmotdhare5688 4 жыл бұрын
I am using PyCharm as Python IDE and sklearn was not preinstalled in it . So to install the sklearn package , File > Settings > Project > Project Interpreter > '+' option > Search sklearn > Install package. Hope this helps, Cheers!
@frankhubeny958
@frankhubeny958 8 жыл бұрын
I get an "invalid syntax" error at the command "print clf.predict([[150,0]]). The other parts did not generate an error. I am starting with a fresh installation of Anaconda3.
@李勇-d5k
@李勇-d5k 8 жыл бұрын
thank you, i meet the same problem, after flowing your tips ,fix it.
@aswinckr
@aswinckr 8 жыл бұрын
Pasting response from @forzagreen below Try with print( clf.predict([150, 0]) )
@IgorOrlov
@IgorOrlov 7 жыл бұрын
help print( clf.predict([150, 0]) ) - SyntaxError: invalid character in identifier
@aswinckr
@aswinckr 7 жыл бұрын
which python are you using? docs.python.org/3.0/whatsnew/3.0.html#print-is-a-function
@IgorOrlov
@IgorOrlov 7 жыл бұрын
I resolve this problem, thanks :)
@aniketroy03
@aniketroy03 7 жыл бұрын
I liked the logic of detecting the more no of orange pixels to differentiate between the two
@tappiera
@tappiera 8 жыл бұрын
can u do some videos on natural language processing as well? shouldn't be that hard with python i think. Thanks :)
@RahulSharma2501
@RahulSharma2501 8 жыл бұрын
+Enrico Aquilina Natural language processing in Python starts with the NLTK package. Please get an introductory book on Natural language processing and then NLTK cookbook!
@saiednesbat1870
@saiednesbat1870 8 жыл бұрын
Thank you Josh! LOVED this! I'm having an epiphany over this as it'll greatly improve the mobile input methodology I've worked on. Looking forward to the future ones.
@gneves-w7r
@gneves-w7r 7 жыл бұрын
how in the world do i get to import sklearn.... What should i open... Please...
@rishikamalik4752
@rishikamalik4752 6 жыл бұрын
download anaconda
@globalwebsmith
@globalwebsmith 7 жыл бұрын
Super easy explanation to clear basics of ML. Expecting more in-depth videos
@BlindSqrlActual
@BlindSqrlActual 8 жыл бұрын
"A good feature makes it easy to discriminate . . ." Yeah!
@mehmetedex
@mehmetedex 7 жыл бұрын
Woaw this is magical man Im in love with this stuff. plus the extraordinarily simple and clean tutorial ALL THUMBS ARE UP FOR YOU MAN
@dashankanadeeshan8097
@dashankanadeeshan8097 8 жыл бұрын
This is great for a beginner.. Thanks (Y)
@serge305
@serge305 4 жыл бұрын
This is exactly what I was looking and has helped me immensely. Keep doing great work!
@r.d.machinery3749
@r.d.machinery3749 5 жыл бұрын
Code this up and you can play "What's my fruit?" on your computer.
@Dr-Brown
@Dr-Brown 8 жыл бұрын
This is brilliant. Made the 6-liner and messed about with it, it's nice to expand it with constants and a dictionary for readability. Now I want to know what else I can do; can't wait for the next episode!
@itsmeturb0
@itsmeturb0 7 жыл бұрын
reminds me of "Hotdog-not hotdog" 😂😂
@villajinbernadette2800
@villajinbernadette2800 5 жыл бұрын
Is this Jin Yang's (idk if my spelling is correct) mobile app on the Silicon Valley series?
@tejaskulkarni5386
@tejaskulkarni5386 3 жыл бұрын
it was powerful enough for oculus tho :O
@com48
@com48 8 жыл бұрын
Really great work Josh, best introduction to Machine learning I've seen.
@marcoscal98
@marcoscal98 5 жыл бұрын
don't recognise "import sklearn" I have installed Anaconda
@lorenzovarsagod1775
@lorenzovarsagod1775 5 жыл бұрын
same
@ipechman
@ipechman 5 жыл бұрын
Marco Scale did you figured it out?
@DanishMuneer
@DanishMuneer 5 жыл бұрын
use conda install scikit-learn to install it if uu already got conda
@roberthelm41
@roberthelm41 8 жыл бұрын
dank. I've been waiting for something like this for a while
@3dscan674
@3dscan674 7 жыл бұрын
What is the python code editor used in this video?
@gauravb8
@gauravb8 7 жыл бұрын
I believe it's Sublime Text.
@mayurpuri7786
@mayurpuri7786 7 жыл бұрын
IDLE
@sanghashankar6013
@sanghashankar6013 7 жыл бұрын
Atom editor
@prasanth4997
@prasanth4997 6 жыл бұрын
Sublime
@johnofardeal
@johnofardeal 8 жыл бұрын
awesome! looking forward to see the next episodes!
@Dominoes0
@Dominoes0 8 жыл бұрын
I think this vid's a great intro to ML concepts and classification, but the comparison with non-ML techniques is bit misleading - It opens with an example of how difficult it is to classify an image of a apple vs an orange using hand-picked features like color, and described how easy it is to confuse the algorithm with non-standard input. Then it shows a ML example that does the same thing! Except for analyzing number of orange pixels, it analyzes bumpiness. Rather than demonstrating that you need ML to classify this example, as originally stated, it shows that classifying is a lot easier with hand-entered features than parsing an image. Look at it this way - using the number of orange pixels as as a feature might make sense. The real thing that makes the first presentation so difficult is the image parsing - something ML excels at. A more fair comparison might be using pixels as features.
@JBGordon
@JBGordon 8 жыл бұрын
Thanks! Yeah, I agree we could have worked on that example a bit. Hoping to dive into image classification in episode 6 (at a high level), so we can see apples vs. oranges in action. Actually, there's a great code lab folks can try to experiment with that now, called TensorFlow for Poets: codelabs.developers.google.com/codelabs/tensorflow-for-poets/index.html
@sid007ashish
@sid007ashish 7 жыл бұрын
You can't expect a beginner to understand it all. At the same time I feel it was right for him not to "throw" all those things on to beginners. Let people get started first, they can learn things on the go. He reduced a huge learning curve I feel.
@geoffthemusical
@geoffthemusical 8 жыл бұрын
Love the pace of these videos!
@itsmemasud
@itsmemasud 8 жыл бұрын
HELP !!! I installed the anaconda but where should I do to write the code? I tried with Spyder but an INVALID SYNTAX message shows up as following: print clf.predict([150, 0]) ^ SyntaxError: invalid syntax Anyone can help?? Thanks :)
@markankaro1850
@markankaro1850 8 жыл бұрын
Same error here
@ryanmatsua33
@ryanmatsua33 8 жыл бұрын
If you're using Python 3+, make sure touse print(clf.predict([[150,0]]) or it won't work. Python 3 needs ()s for printing.
@a-scohen5169
@a-scohen5169 8 жыл бұрын
thanks man
@gfj555
@gfj555 8 жыл бұрын
Thanks for the great beginners video on machine learning. I knew nothing about machine learning, and even I was able to follow it. Looking forward to the next lesson.
@rainvdecastro
@rainvdecastro 8 жыл бұрын
Why do i get a Deprecation Warning when i run the code?
@royalcrew3878
@royalcrew3878 8 жыл бұрын
You have to write it like this "clf.predict([[150, 0]])". Without the brackets it will interpret the input as a "wrong dimensioned" array.
@rpgtogether7022
@rpgtogether7022 5 жыл бұрын
@@royalcrew3878 ITS NOT WHAT HE'S ASKIN' THE PROGRAM RUNS FINE BUT WITH A WARNING
@amomasi9909
@amomasi9909 5 жыл бұрын
You're probably using deprecated libraries (i.e. libraries that are no longer being used). So we need to find new way to reference.
@ALPHADOG1900
@ALPHADOG1900 7 жыл бұрын
I have never seen a concept so hard to grasp made easy to understand in this videos
@reephamadness
@reephamadness 8 жыл бұрын
"How to get started with machine learning from scratch. To do that, we'll start with two open source libraries." Let me just import these two libraries that each have thousands of lines of code already written. That's like saying I'm going to bake a cake from scratch and going to the store and buying cake mix. Aside from that, good video.
@realname984
@realname984 8 жыл бұрын
+reephamadness Is it really? Every time you write some code there is underlying code that gets executed. Example: You make an array. Pretty simple right? Now look at all the underlying code that is necessary for running that code. Do you have to understand it all to use an array? I agree you can profit from learning all the underlying behaviour, but in concepts like neural networks which require a lot of math I think its best for the regular developer to learn to use already existing libraries.
@reephamadness
@reephamadness 8 жыл бұрын
I'm just saying his usage of "from scratch" is improper in this case. From scratch means "from the very beginning, especially without utilizing or relying on any previous work for assistance." That's taken directly from searching "from scratch" in Google's search engine, aka the company that made this video.
@realname984
@realname984 8 жыл бұрын
+reephamadness I see what you mean. My definition of "from scratch" is just a bit different.
@JBGordon
@JBGordon 8 жыл бұрын
I see where you're coming from. To write your own algorithm without using any libraries, try episode #5 kzbin.info/www/bejne/d6DIdnuni7iBhdk
@BUFFDOENUT950
@BUFFDOENUT950 7 жыл бұрын
Well yeah, but you gotta learn from the externals first, then look into making your own machine learning algorithm. It would be sloppy to learn how to make your machine learning AI without first understanding the basics. It is a good start to learn how to call functions from libraries.
@abhishekwaghmare1543
@abhishekwaghmare1543 7 жыл бұрын
If any of the real world teacher could at least remotely tech like you did we could reach next galaxy with many good brains...loved your job
@simearsov
@simearsov 5 жыл бұрын
Wow, google developers that use a mac book. How do I take your video seriously after this?
@SgtSayWhat
@SgtSayWhat 5 жыл бұрын
Google use macbooks because their Data centers run on linux and the Mac kernal is based on Unix. This "Macs are only for people that know nothing about computers" argument comes from people who know nothing about computers.
@Anisometry
@Anisometry 5 жыл бұрын
Mac has some pretty unique and useful programs
@mohammedlargo9503
@mohammedlargo9503 6 жыл бұрын
You have got my full respect you explained it so good that a 15 year old german understood t a piece of this topic
@EthanArrowood
@EthanArrowood 8 жыл бұрын
Didn't even realize this was in python 2 until the last line xD Darn it!
@Kev931
@Kev931 8 жыл бұрын
+Ethan Arrowood not to worry scikit-learn.org/stable/index.html supports python >3.3
@dkarlovi
@dkarlovi 8 жыл бұрын
+Ethan Arrowood yeah, never really used Python and just found out I'm not on the same version as the video. :)
@pavelbazin8734
@pavelbazin8734 8 жыл бұрын
Thank you Josh and a team behind the scenes!
@MarkDavey
@MarkDavey 8 жыл бұрын
Could you please throw this up on github
@akshaymathur2225
@akshaymathur2225 8 жыл бұрын
This is good.. Been searching for this.. Great Job.
Visualizing a Decision Tree - Machine Learning Recipes #2
6:42
Google for Developers
Рет қаралды 969 М.
A. I. Learns to Play Starcraft 2 (Reinforcement Learning)
17:42
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 340 М.
AlphaGo - The Movie | Full award-winning documentary
1:30:28
Google DeepMind
Рет қаралды 36 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 168 М.
Почему «Люди в черном» не просто комедия
18:10
I Made an AI Clone of Myself… and It’s Freakishly Good
21:46
Sara Dietschy
Рет қаралды 87 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 269 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 419 М.