Machine Learning Tutorial Python - 8 Logistic Regression (Multiclass Classification)

preview_player
Показать описание
Logistic regression is used for classification problems in machine learning. This tutorial will show you how to use sklearn logisticregression class to solve multiclass classification problem to predict hand written digit. We will use sklearn load_digits to load readily available dataset from sklearn library and train our classifier using that information.

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #LogisticRegression #sklearntutorials #scikitlearntutorials

Exercise: Open above notebook from github and go to the end.

Topics that are covered in this Video:
0:00 - Theory (Binary classification vs multiclass classification)
0:26 - How to identify hand written digits?
1:02 - Coding (Solve a problem of hand written digit recognition)
11:24 - Confusion Matrix (sklearn confusion_matrix)
12:42 - Plot confusion matrix using seaborn library
14:00 - Exercise (Use sklearn iris dataset to predict flower type based on different features using logistic regression)

Next Video:

Populor Playlist:

Tools and Libraries:
Scikit learn tutorials
Sklearn tutorials
Machine learning with scikit learn tutorials
Machine learning with sklearn tutorials

#️⃣ Social Media #️⃣
Рекомендации по теме
Комментарии
Автор

There are very few teachers who actually make us fall in love with learning. You have an incredibly fascinating way of teaching Sir!!

Charmingenby
Автор

Thank You. After watching previous 8 videos, I tried this Iris exercise on my own and my model actually predicted so well, with a score of 1.0

SohamPaul-xyjw
Автор

Sir, Whatever you teach it's very very interesting and I think I am luckiest person which I am reading from your videos
It's very helpful for us and you are great.
I have seen many videos but no one teaches like you.

PoojaPatel-biwr
Автор

at 7:50, use this >> model = LogisticRegression(solver='lbfgs', class_weight='balanced', max_iter=10000) to avoid this warning >>> 'ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.'

mabelkarani
Автор

A little detail... after updating sklearn to version 0.20.2 or higher it will be needed to specify a solver and multi_class specification as parameters to avoid warning errors. For instance "model = LogisticRegression(solver = "newton-cg", multi_class="auto")"

Kikeina
Автор

I got accuracy 93% for iris data set. Thank you very much to make ML simple.

maruthiprasad
Автор

Got 96.66% practicing on your given iris.csv dataset...I am new on your channel, but got addicted to your videos, especially to the playlist of machine learning... please keep teaching us in same way. Thanks a lot..

kashifahmad
Автор

I do not usually comment but you wrote the code so simple and explained so beautifully that i had to praise you. Thank you so much !!

ritikpratapsingh
Автор

Iris dataset -> accuracy with test_size =0.3
I have fallen in love with this amazing knowledge 🤩.Thanks a lot Sir ❤️.

rambaldotra
Автор

I got accuracy of 96.66%.
Thank you so much for your initiative. Best part of your playlist is exercises that give confidence and a clarity how to apply logics in form of code. And best part you talk about practical use cases.

radhedhabas
Автор

Great tutorial, thanks a ton for shaing this amazing stuff. Request you to start a series on NLP, Deep Learning or Text Analytics

Ankurkumar
Автор

I got 96.66% accuracy for Iris dataset exercise. Great work! Thoroughly enjoying and learning a lot from your courses.

nayyershahzad
Автор

Within 2 Days I have addicted to this am on this Channel for around 5-6 hours Please Continue the

jagjeetagarwal
Автор

Thanks for your teaching! I like your tutorials and exercises, that make me quickly understand.

peiyuankao
Автор

Your explanation is at a different level. Just one request please add the different machine learning algorithms a bit fast as once someone starts leading from your channel gets hooked up to it ...

tcsanimesh
Автор

I loved this tutorial..! Absolutely awesome...!! i get up to efficiency= 96.6%

harshthummar
Автор

one thing i don't understand.
in the heat map, you said, if the number was not zero, the model accuracy failed there.
but in the first example, 37 times I fed my model zero, and my model said it was zero. same as like, 40 times i fed one and my model said it to be one. So, the accuracy is perfect with not being zero in the diagonal part of heatmap.
thanks a lot for your marvelous effort

MdAbdurRahaman-fd
Автор

Respect and appreciation from 🇵🇰 . Interesting teaching skill. 👍

rehanabbas
Автор

so it can only take inputs and predict images from the dataset?, how if i want to predict other images that are not from the digit dataset?

rajareivan
Автор

sir I have done the Iris flower exercise according to what I have learnt from you. I got an accuracy of 1.0 (I thing it is 100%) !
I just done everything according to what I have learnt from you!

muhammedrajab
visit shbcf.ru