Yo sentdex! It's been a year since i started learning python with your videos. Here I am now, diving into machine learning!!!!
@avatar098
9 жыл бұрын
I started from your pattern recognition series and worked my way through image recognition and now to support vector machine learning! You have inspired me in my computer science career and this is something I will definitely integrate into my capstone project! Thank you very much for these videos!
@sentdex
9 жыл бұрын
Awesome to hear all of this. Always happy to share.
@redwanalkurdi2940
4 жыл бұрын
Gamma is a parameter for the default RBF Kernel which is used by the SVM classifier. Alpha is the learning rate used in Gradient descent to find the global minimum for the function which needs to be minimized to find the optimum weights for the decision boundary !!
@CheSemah
8 жыл бұрын
The most amazing part of your work is that you actually filmed this video on 8am. That is quite early working as a coder. Anyway your videos are awesome!
@SuryaveerSingh007
7 жыл бұрын
print("Prediction :",clf.predict(digits.data[-1])) is showing error this should be print("Prediction of last:",clf.predict(digits.data[[-1]]))
@flyingfalcons7943
7 жыл бұрын
kzitem.info/news/bejne/s59sspyGq3yUmXo
@flyingfalcons7943
7 жыл бұрын
use graphlab for machine learning
@bkdbkd
6 жыл бұрын
Thanks!
@alinasalmen95
6 жыл бұрын
wooow, Thanks a lot!
@adhamnauman6039
6 жыл бұрын
I think this line should be print('Prediction:',clf.predict(digits.data)[-1])
@venkateshshunmugham7048
9 жыл бұрын
I really had a hard time finding some good resources on machine learning study materials and now i feel i finally found it!! Thank you for sharing your knowledge.. Keep up the good work :)
@balrogwhip737
9 жыл бұрын
Your explanation of Gradient Descent was awesome for someone, who never knew that term existed in the world lol!
@sentdex
9 жыл бұрын
Thanks! Glad it made sense
@Freak80MC
9 жыл бұрын
So I was having more issues with everything and was so close to stopping this series and just going to something else of yours but I finally decided to uninstall everything and get back to a fresh site packages folder and reinstall everything and it's working now. The main difference this time was I used "pip install wheel". So again, this comment in mainly to help anyone out who may get into my situation.
@nahidakhter8646
6 жыл бұрын
Really liking your instructional videos. You make things quite easy to understand
@poopipeboy3033
6 жыл бұрын
I used gradient descent (didn't know it was called that) in some of my programs as a sort of iterative method for refining an input value to get the expected output value of a formula. My idea was to process the results for three locations, and then based on which value was closer to the answer, the program would move across or shrink the range down in order to get the correct answer. It actually requires very little processing power if you re-use the results from the previous iteration.
@readtilleternity
8 жыл бұрын
Hi sentdex, Nice on these awesome videos. I learnt a lot of python from your channel. Thanks a lot. Could you please explain what C stands for in clf = svm.SVC(gamma=0.001, C = 100) Also, would you know a specific command/add-on which would list all variables with their size in Python? I checked on google and found some hard-to-comprehend loops. Thanks a lot in advance Lawrence
@chandanjha3205
7 жыл бұрын
C is a parameter which is used for tuning the accuracy.
@deino4753
9 жыл бұрын
Dear Sendtex, How would you upload your own images for data rather than using the pre-installed images for data?
@dudeplayingstuff6787
8 жыл бұрын
+Deino475 little late but here is how to do it (compatible with scikitlearn) stackoverflow.com/questions/35254842/reading-images-with-matplotlib
@ankitthehot
8 жыл бұрын
Awesome tutorials. Thanks. More of scikit with datasets that need to be cleaned ourselves with code would be great.
@nikhilraghava
8 жыл бұрын
How do you input your own images and make the program predict the number using the training data, can you do a video on that? That would be very useful. Thanks
@nikhilraghava
8 жыл бұрын
And how do you input your own training data set images? A video on both combined would be useful. Thank you. Pls help.
@mahdiakil4634
7 жыл бұрын
i have the same problem, did you find any solution for that? thanks
@sniper9143
5 жыл бұрын
I thought gamma was just a parameter of the RBF kernel that determines the influence each point has on the decision boundaries.
@vikasgiri6039
7 жыл бұрын
what is basic concept behind the working of fit and predict function. How do they achieve their task ?
@boses5320
6 жыл бұрын
Hello Sentdex, Your videos are great, But the problem of collecting data is huge. Can you show or suggest how to collect data from different sources like API or SQL and also other methods to collect them. Thanks and i love ur tutorials.
@anshulagx
6 жыл бұрын
I just wanted to know how could i convert my image to predict using this classifier
@nsokoloff
7 жыл бұрын
This is so fun to get into thanks for sharing very valuable!
@noureddinehoucineamraoui7537
6 жыл бұрын
Hi sentdex, .. I'm following you videos since a long while .. thanks for all your efforts .. could you please make a tutorial about 'Incremental SVM' and its implementation in Python?
@MohamedAshraf-zs6nv
4 жыл бұрын
so gamma here is like learning rate and the much smaller value the better accuracy to get the precise lower point in the parabola graph but i think with much low values it will take such long time??? correct me if understood wrong
@bustosmusic
9 жыл бұрын
You are awesome, keep on the good work! Post Data: I love you
@sentdex
9 жыл бұрын
Ricardo Bustos González Thanks!
@WahranRai
6 жыл бұрын
He looks like the top of the class !!!
@d86clot
7 жыл бұрын
You are doing pretty well. Also I see an improvement on your communication skills. Kind Regards
@aakashkumarnain7592
8 жыл бұрын
Awesome explanation !! Can you please explain the face recognition example too (provided in the examples of scikit learn)?
@cancan2450
7 жыл бұрын
even in SVM the curves you were showing those are not true because the the fit function will not fit the data the perfectly it is called "Over fitting" that is why we regularise our hypothesis in machine learning to avoid the over fitting like that because if we fit the line that preciously for our training data that will only work well with the training data but when it comes to the new data it algorithm will fail the predictions. so in a NUTSHELL the data is not divided that preciously . if that makes sense .
@raghavavinay8660
3 жыл бұрын
How to apply explainable ai for svm kernel to see which image features contribute the most for classification
@abdelbasetelhangari645
8 жыл бұрын
Thanks anyway, but its not your own function the 'svm' which should be the main subject. The question is how to get the weight matrix after training? In other words how to come the theory true.? ( finding the alphas, bias, and soon) Thank you again for the efforts
@martinc3907
9 жыл бұрын
In R there is the "Rattle" module that does machine learning using a GUI interface.
@brosales
7 жыл бұрын
Bro your videos and knowledge are amazing, thks for sharing
@sentdex
7 жыл бұрын
Happy to do it!
@zacktran3388
4 жыл бұрын
Great video. Thank you for sharing.
@adithya7209
7 жыл бұрын
Hi sentdex you are my guru :)
@taherehdastani3399
6 жыл бұрын
i did the same code but i got this error : "ValueError: bad input shape " , any one could help me plz ?
@krasserTerror
5 жыл бұрын
I put the expression in square brackets and it worked: print ("prediction: ", clf.predict([digits.data[-1]]))
@9paradox
6 жыл бұрын
if anyone had error in running the code or displaying result. Try this : import matplotlib.pyplot as plt from sklearn.datasets import load_digits from sklearn import svm digits = load_digits() clf = svm.SVC(gamma=0.001,C=100) x,y =digits.data[:-1], digits.target[:-1] clf.fit(x,y) print('Prediction : ',clf.predict(digits.data[[-1]])) plt.gray() plt.matshow(digits.images[-1]) plt.show()
@lakeguy65616
7 жыл бұрын
I have a question. You're training a SVM to recognize the digits 0-9. And your network has 10 possible outcomes Is it wrong to break the problem down further and create 10 different SVMs, each trained to recognize a single digit? You'd have to train 10 different svm/networks and then run the virgin image of a digit against all 10. presumably 9 of the networks would have a value less than .5 and close to 0, while one would have a value of greater than .5 and closer to 1. Its more work, but wouldn't it result in greater accuracy? Thanks for creating these videos. John Deatherage
@sentdex
7 жыл бұрын
+lakeguy65616 there's only one way to find out....try it!
@namanbhayani1016
7 жыл бұрын
SVM works on data vs label. So the classifier will divide the entire data set into 10 possible outcomes. You could try plotting the data for better understanding of the clusters.
@samkitjain8832
8 жыл бұрын
I have learned a quite from your videos lately.Currently,I am doing a pedestrian detection problem on PETA dataset.I have a problem here that I have multiple images of a particular pedestrian in different positions but common labels for all of them obviously.How do I go ahead and apply machine learning algorithm on this dataset?
@MrMadhyastha
7 жыл бұрын
Awesome videos!! Do you have any real time example that helped to resolve ?
@khitemamiri8051
6 жыл бұрын
Great video :D thank you so much for sharing this
@ritzrockin
5 жыл бұрын
Hi, Does Gamma parameter relate to over fitting? That is, the more precise it is, the better prediction based on the given training set. But can't predict it right when a new number is provided? Thanks in advance
@suffiyanshaikh2127
5 жыл бұрын
Hii Sir i want to train SVM classifier for face recognition i have extract the face features using lbph but i am not able to splitting and fitting the training data and labels to the svm classifier can you help me in this.
@uday_vlogsandgaming
4 жыл бұрын
How to extract features of image in store in csv form to train network.... Please answer I am very confused
@rrohan92
9 жыл бұрын
Is there any way to do this without using svm? How can I train one of the scikit-learn's classifiers other than svm?
@sentdex
9 жыл бұрын
+Rohan Doshi replace it with something else. Most of them are interchangeable super easily. So: from sklearn import svm from sklearn.neighbors.nearest_centroid import NearestCentroid from sklearn.ensemble import RandomForestClassifier clf = svm.SVC(kernel='linear') clf = NearestCentroid() clf = RandomForestClassifier(n_estimators=100) Pick the one you want, comment out the others. Just an example.
@arjunbemarkar7414
5 жыл бұрын
so how many dimensions is the svm?
@alkane1748
4 жыл бұрын
please am trying to perform landsat image classification using machine learning algorithms but am confused about how to get my training and testing data. Any help?
@vaibhavambasta8053
7 жыл бұрын
is gamma similar to alpha in theta=theta-alpha(partial derivative term) for gradient descent? And does C refer to number of iterations?
@rakeshpatil8765
6 жыл бұрын
What software is used to print the image after compiling the code.....i am not getting the desired image
@edward_7_3_9
4 жыл бұрын
how you can load the data and image I don't see it in you code :( ., so i have problem with digits.data
@indiansoftwareengineer4899
6 жыл бұрын
code and explanation of this tutorial at here pythonprogramming.net/support-vector-machine-svm-example-tutorial-scikit-learn-python/
@adityadeshmankar5538
8 жыл бұрын
can you give set of instruction to set up completely for windows please?
@kunalkotiyal9566
7 жыл бұрын
How to approach for visual sentimental analysis of an image. sentdex
@creatividad_nula3178
9 жыл бұрын
When you run print(digits,image[0]) what do you exactly mean with "this is the image of the digit"? Thanks :)
@tusharpoddar3126
6 жыл бұрын
Traceback (most recent call last): File "Machinelearning.py", line 19, in plt.imshow(digits.image[-1], cmap=plt.cm.gray_r , interpolation="nearest") File "C:\Python\Python37\lib\site-packages\sklearn\utils\__init__.py", line 63, in __getattr__ raise AttributeError(key) AttributeError: image I am being showed this error Could someone please help
@AchuthNarayan
9 жыл бұрын
Great video! I have a question. What is 'C' in SVC(gamma=0.1, C=100) ?
@sentdex
9 жыл бұрын
Think of C as a sort of "level of importance" of classifying data perfectly correctly. C is a value that will vary depending on your project and your data. If you have data that is very clearly categorized, say differentiating between mammals and arachnids, then the classification requirement is strong, you'd not want to miss-classify anything. If your classification is more of an array, then it's a bit less important. Important = Higher C, less important = lower C. In the end, you should experiment heavily to find the best. There are also built in features for auto finding decent values: scikit-learn.org/0.11/tutorial/statistical_inference/model_selection.html You definitely want to be careful, because "finding the perfect value" smells of data snooping, so you do want to be careful.
@AchuthNarayan
9 жыл бұрын
That was quick. :D Thanks!
@souvikdatta97
6 жыл бұрын
Well, is SVM the best technique for image recognition?
@zakriazaheen2892
2 жыл бұрын
clf.predict(digits.data[-1]) = erorre clf.predict(digits.data[[-1]]) =its ok clf.predict(digits.data()[-1])=its ok
@alokkr029
4 жыл бұрын
how can I load the dataset with pandas
@advaitkoparkar7332
7 жыл бұрын
Thanks sentdex! :)
@SpacedFiction
9 жыл бұрын
Hi, thanks for the tutorials very helpful and interesting. Just wondering, I didn't get the image of the eight just the prediction. Do you think that's because I'm on a linux system or some other reason. I'm also using python 2.7 as the sklearn package didn't work on 3.4. Thanks.
@sentdex
9 жыл бұрын
SpacedFiction Nothing to do with your operating system, shouldnt have anything to do with the version of python other than some minor differences, but, if it ran, it should have worked. Compare your code to the code here: pythonprogramming.net/support-vector-machine-svm-example-tutorial-scikit-learn-python/
@elmirach4706
6 жыл бұрын
:( I do understand we do something like setting up x,y and clf, but not sure why we do that whats the task, etc. A little of explanation what we're doing and why would be useful
@aadityarajbhattarai46
6 жыл бұрын
Is there tensorflow videos of similar kind?
@haradhanchel9445
7 жыл бұрын
Does scikit learn and sklearn are same??
@RamakrishnaAppicharla
8 жыл бұрын
Hey Harrison! i am getting "Deprecation Warning". I ran your script, but it is giving me Warning, but your's not getting any thing! Why? please clarify !
@sentdex
8 жыл бұрын
+Ramakrishna Appicharla deprecation is when a feature is no longer encouraged for use, usually due to a new version replacing it. This video is older, so the deprecation is probably from one of the modules simply alerting you to a new, and better, way of doing something.
@RamakrishnaAppicharla
8 жыл бұрын
+sentdex thanks and i want to learn how to use nltk with machine learning. Because i am doing a project so i want these two topics , and i am also following your nltk tutorials. Can you help me in this regard! !😁
@Fritz0id
7 жыл бұрын
put double square brackets around the -1: clf.predict(digits.data[[-3]])
@vigneshvp6616
6 жыл бұрын
can you upload a video of image recognition using skilearn
@abhinav8383
9 жыл бұрын
Hello sentdex, great tutorials :) I was wondering if you can help me know which is best for machine learning for a bioinformatics project python, weka, R, Matlab. ty in advance :)
@sentdex
9 жыл бұрын
Choose the language you're most comfortable with, as that's what you'll be the most productive with.
@MichaelGalarnyk
9 жыл бұрын
+abhinav8383 Matlab is horrible with large amounts of data. python has so many libraries and tools to easy.
@csgoolemeister3685
4 жыл бұрын
hello ! could you please hellp me i working on voice recognition with EMD not MFCC so i need some help please on SVM
@Roaming_Atlas
9 жыл бұрын
Hi Harrison, I am trying to follow your tutorial using Python 2.7.9 and received the following error when I tried to import datasets. ImportError: cannot import name datasets. Can you provide any insight on how to fix it? Thank you.
@sentdex
9 жыл бұрын
Did you call your script sklearn.py?
@Roaming_Atlas
9 жыл бұрын
sentdex is it different than "from sklearn import datasets"?
@jaiyesh007
7 жыл бұрын
How can I save the training data into a .xml file?
@saidaahmedchaouch81
7 жыл бұрын
Salut, je veux réaliser un résumé vidéo d’un seul vidéo en python, comme je suis débutante en python je veux savoir : Comment tirer les keyframes
@9MAS91
5 жыл бұрын
What if the target is a String ? Like classifying animals and their weight
@codingwithbobby8340
4 жыл бұрын
you would have to convert them into integers if you could or you would create a dummy variable
@Ruhgtfo
4 жыл бұрын
cannot import name 'cross_validate' from 'sklearn'
@keshavbansal5148
4 жыл бұрын
try model_selection instead of cross_validation, its basically the same
@hamzazaheer9272
7 жыл бұрын
how to load qt platform it can not find qt platform
@joapp6683
7 жыл бұрын
print("Prediction:",clf.predict(digits.data[-1)) should be: print("Prediction:",clf.predict(digits.data)) ? That worked for me...
@ujwalkaka
7 жыл бұрын
from sklearn import datasets from sklearn import svm gives AN error. help would be appreciated
@ravishankar2180
7 жыл бұрын
first try to only import sklearn and see what happens. if it gives an error then your have not installed scikit-learn properly. install sklearn again and then try
@tatomans1982
8 жыл бұрын
I would like to try to do the same but with other sets of images. Can you explain, how the images are related with the targets, so I can related my images with my targets Thankyou very much!!
@JeaneAdix
8 жыл бұрын
x is the dataset. it consists of 1783 rows which are basically 8 by 8 images shaped into 1 row. Y is your classifier. It contains all the knowledge about each row. for x[1] you have an image and y[1] tells you what the image is classified as (the numbers) . I think the learning set, and the prediction set have to be similar data sizes. so if you want to use your own data set to learn on you need to make them all the same size. organize them in an array, and then make a corresponding classifier set. Just link the 2 by writing clf.fit(x,y) as he did
@koushik7604
8 жыл бұрын
Really awesome..........
@mohammadadil2847
5 жыл бұрын
sir can you explain why use c=100
@realmrjangoon
4 жыл бұрын
Dont worry, this is more of example video than tutorial and is main for teaching what it does. it will explain in ore time
@engineernotbychoice
8 жыл бұрын
Getting this error: clf = svm.SVC(gamma-0.001, C=100) NameError: name 'gamma' is not defined Help me out to sort out this prob
@sentdex
8 жыл бұрын
You've typoed. you're saying gamma-0.001 rather than gamma=0.001
@engineernotbychoice
8 жыл бұрын
Got it... thnx
@MatthewTaylorAu
8 жыл бұрын
yet another good tutorial. Thanks for posting. = appears as - for me, weird since I haven't noticed this previously. easily recognised and fixed. this line is giving me an error. clf.fit[x,y] TypeError: 'method' object is not subscriptable ideas?
@Danielsnake1
8 жыл бұрын
+Matthew Taylor Yea so you probably got that fixes already but the [ ] should be ( )
@XXX-eh1ct
8 жыл бұрын
when I set gamma to 0.00000000001, it become not accurate...
@miladashouri4164
7 жыл бұрын
Thanks man! Thums up
@ennyoonchange
7 жыл бұрын
How a load data from csv file? Tks.
@agusprasetyo5043
8 жыл бұрын
i need your favour.. how to filter a fruit (orange, apple, and banana) with python?
@thecoolfarhan1
7 жыл бұрын
Watch google developers video, they have a video for fruit classifier
@uyaipek7054
7 жыл бұрын
what is the machine learning? It looks like machine learning is not something new but a fancy name of grouping items and making assumptions and predictions. Computers have been using for this purpose for years. What makes machine learning exciting? I mean plant A height is between 30 35cm tall and plan B height is around 100 100cm so 200 years old math can easily tell you that 105 cm plant is very very likely to be plant B type already. What is new with this ML thing? I am not coder.
@alexli6935
6 жыл бұрын
I'm not exactly an expert, but basically, with machine learning, you have no clue what your doing. That is, it's a very general way to classify things, and the same algorithm can be applied to really anything. So it can classify plant A and plant B, but more importantly, it can classify things that we intuitively won't be able to explain (or even just can't). Unlike a human-made algorithm, machine learning can find patterns that we don't explicitly tell the machine, so it is able to sometimes notice things we don't, and also able to notice a huge variety of patterns.
@hussamshamek6331
7 жыл бұрын
You are decent man .
@Rusianskatingfan
9 жыл бұрын
Thank you!
@abhranilbhattacharjee1488
7 жыл бұрын
Is the digit dataset MNIST?
@sentdex
7 жыл бұрын
No, we made our own.
@bavaneepriyaakuche6372
6 жыл бұрын
hey,i am getting a typeerror..can anyone help me?? Thank you
@simpleman1546
7 жыл бұрын
what is C=100 ?
@zunelmhrz3040
4 жыл бұрын
Am I the only one who watched all the video twice and still have no idea how to code own, except of copying code from video??
+nurul akter One of the commands used in that python file is either deprecated or soon will be.
@dineshraj5957
7 жыл бұрын
You are awesome bro....but honestly, sometimes you speak too much, sometimes I get frustrated!! and I am like just come to the code man!! :D
@TM-vg2mt
7 жыл бұрын
why my 'gray_r' is was error
@flyingfalcons7943
7 жыл бұрын
kzitem.info/news/bejne/s59sspyGq3yUmXo
@Tibetan-experience
7 жыл бұрын
how to make it real time ?
@seymayigit8196
6 жыл бұрын
did you find the answer? I need it me too
@Tibetan-experience
6 жыл бұрын
yes i did manage to do it. Not with camera. I made a drawing pad to recognise the characters i trained.
@hariwarshan931
5 жыл бұрын
This video doesn't make any sense...if I use only below code plt.imshow(digits.images[7], ...) I can get the image of seven...what prediction is ...without using the above statement u need to show the image of that number given in that clf.predict[ ]...don't teach by cheating bro...
@ekta8748
9 жыл бұрын
URGENT!!!!!! SOS!!!! Hi i am trying to import sklearn as i have it installed it says "no module named scipy " so i installed scipy through pip using "pip install scipy" and i get this "import setup tools,tokenize:file ..................and blah" I uninstalled python and installed again but dat din work. I am in urgent need please HELP!!!
8 жыл бұрын
+Ekta Mehta 6 months later. Did you fixed that?.
@AJOuthuse
8 жыл бұрын
For anyone else running into this problem, I discovered I somehow had the same version of python installed in 2 different locations. Apparently I installed it, but the first time I did not install it "for all users". Uninstall everything, reinstall python for all users, and this problem disappeared for me.
@Mezklador
7 жыл бұрын
What about "pip install scipy"?
@ravishankar2180
7 жыл бұрын
use anaconda and create a virtual environment and then use " conda install sklearn" if you install latest anaconda you get scikit-learn pre installed.
@Neceros
9 жыл бұрын
I wish I understood this. I simply don't understand how people can make money doing this.
@sentdex
9 жыл бұрын
Neceros stick around, and you're shown how, step by step :P
@noneofyoureffingbizness5806
8 жыл бұрын
+Neceros yea,predicting the future,so simple and unimportant.seriously?
@abegill2800
9 жыл бұрын
Hi there, I did not get your first name? My name is Abe. I just subscribed to your channel. Do you know how I can get a dataset for PC user activity? I mean did someone collect information from MS Log files that can show what users did on their PC? (Opened Word to edit a new letter, Opened a Power Point to make a presentation, etc). You can contact me at Linkedin: www.linkedin.com/in/abegill
@sentdex
9 жыл бұрын
Hi Abe, my name is Harrison. I am not aware of any repository containing user activities on PCs. That would be an interesting data set.
@abegill2800
9 жыл бұрын
Thank you. I am now a graduate of your Lectures. I did all 22. I got the impression that there is a Lecture 23? You said something about the next lecture..Did I misunderstood?
@abegill2800
9 жыл бұрын
As I mentioned earlier, I enjoyed all the lectures and I learned a lot about ML. I will probably need to go over them one more time and take notes.
@sentdex
9 жыл бұрын
Abe Gill Actually, there're 27 total, last released was #23. They are still coming out, however. After that, there're a couple unsupervised learning examples as well, then I will be taking a break from ML and doing Kivy.
@abegill2800
9 жыл бұрын
Sorry for my ignorance - what is Kivy?
@himanabdollahpouri428
8 жыл бұрын
In the beginning of your video, you are saying" See how easy Machine learning is". I gotta tell you Machine learning is not easy! It is just the implementation in Python that is that easy. If you really want to know what machine learning is, you should be able to implement all algorithms yourself without using libraries. So, it is not good to say that someone is a machine learning expert, just because he can use some pre-implemented machine learning algorithms in Python!
@sentdex
8 жыл бұрын
+Himan Abdollahpouri No one was making the claim that one could be a machine learning expert by knowing how to employ algorithms. The claim was simply that you could derive utility without the need to be an expert.
@himanabdollahpouri428
8 жыл бұрын
Well, Saying machine learning is easy just because you can easily use its pre-implemented algorithms in Python is like saying implementing windows OS is easy just because someone can work with windows easily!
@NNNNickN
6 жыл бұрын
When I try: print('Prediction:', clf.predict(digits.data[-6])) Get Error: .....ValueError: Expected 2D array, got 1D array instead:.....Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample. This work OK^ print('Prediction:', clf.predict(digits.data[-6].reshape(1,-1)))
Пікірлер: 340