Logistic Regression and the Perceptron Algorithm: A friendly introduction

Поділитися
Вставка
  • Опубліковано 2 чер 2024
  • For a code implementation, check out these repos:
    github.com/luisguiserrano/man...
    github.com/luisguiserrano/man...
    Announcement: New Book by Luis Serrano! Grokking Machine Learning. bit.ly/grokkingML
    40% discount code: serranoyt
    An introduction to logistic regression and the perceptron algorithm that requires very little math (no calculus or linear algebra), only a visual mind.
    0:00 Introduction
    0:08 Series of 3 videos
    0:41 E-mail spam classifier
    7:19 Classification goal: split data
    11:36 How to move a line
    12:21 Rotating and translating
    18:47 Perceptron Trick
    23:20 Correctly and incorrectly classified points
    24:20 Positive and negative regions
    27:18 Perceptron Error
    29:40 Gradient Descent
    34:36 A friendly introduction to deep learning and neural networks
    37:48 Activation function (sigmoid)
    38:31 Log-Loss Error
    41:37 Perceptron Algorithm
    42:45 Logistic regression algorithm
    44:48 Thank you!
  • Наука та технологія

КОМЕНТАРІ • 82

  • @paedrufernando2351
    @paedrufernando2351 5 років тому +22

    One of your greatest videos sir. Hands down... Perfect timing perfect explanation... Wow simply amazed.. I downloaded the video so that I have a copy of it. Just in case UA-cam is non existent in a zillion years

  • @ngalatalla4032
    @ngalatalla4032 4 роки тому +8

    Cheers to you men. I just opened a beer to celebrate. I finally understand what Gradient Descent is how it works and why . Thanks Luis

  • @EngineeringChampion
    @EngineeringChampion 4 роки тому +4

    Thank you very much for depicting the mathematical concepts into very simple graphs! Unforgettable!

  • @thinguyen8865
    @thinguyen8865 5 років тому +5

    Your tutorial is very easy to grasp. Best channel on machine learning with good graphic demonstration. Thank you for your hard work

  • @kartikpunjabi7373
    @kartikpunjabi7373 3 роки тому +2

    The best ever video on Logistic Regression ever seen.
    SIr, keep sharing tutorials like this, very helpful in making deep understanding and implementations.

  • @craighennessy3183
    @craighennessy3183 Рік тому +2

    You sir are a great teacher! The way you explained that was simply amazing! That was so engaging!

  • @kamalnayan9157
    @kamalnayan9157 5 років тому +1

    Thank you very much for such a great in-depth explanation. Please continue uploading more and more videos.

  • @dragolov
    @dragolov 4 роки тому +1

    The best #MachineLearning videos are by Luis Serrano. Respect + Thank you, Maestro!

  • @456youuu
    @456youuu 4 роки тому +2

    You deserve more subscribers. All my professors should be at your level. Great video, I learned too much!

  • @eladkipiani9571
    @eladkipiani9571 4 роки тому +1

    Really really great. I looked for this explanation for months

  • @md-ed7ey
    @md-ed7ey 3 роки тому

    Just saw this. Wow. I'm looking forward to seeing ALL of your vids. Thank you for your kindness and time to share with the world.

  • @malyansoferi
    @malyansoferi 4 роки тому

    Excellent clear and informative explanation.
    Amazing work, thank you!

  • @sachinshelar8810
    @sachinshelar8810 4 роки тому

    you are the best in the business of teaching. I came across your content couple of days ago and now I am addicted.

  • @blesucation4417
    @blesucation4417 6 місяців тому +1

    Just want to leave a comment so that more people could learn from your amazing videos! Many thanks for the wonderful and fun creation!!!

  • @darbhamullaeswaraphanipras6356
    @darbhamullaeswaraphanipras6356 4 роки тому

    One of the best videos so far on the logistic regression..

  • @harjos78
    @harjos78 4 роки тому

    Awesome tutorial. The best explaination on Logistic regression and perceptron alogorithm! Take a bow Luis!

  • @vikaspundir6799
    @vikaspundir6799 Рік тому

    This is the best channel for Machine learning. Best to understand.

  • @sandipansarkar9211
    @sandipansarkar9211 3 роки тому

    Great video.Learnt the concept in an hour

  • @rupaliborkar8647
    @rupaliborkar8647 3 роки тому

    Amazing Video! This video explains logistic regression in a layman language which helped me understand the algorithm in depth! Thank-you so much!

  • @xavierhuijts2574
    @xavierhuijts2574 Рік тому

    Best tutorial on perceptron out there! Thank you

  • @neelchattoraj
    @neelchattoraj 3 роки тому

    Amazing, this really was as friendly as this topic can get.

  • @yeeunsong3423
    @yeeunsong3423 4 роки тому +1

    Thank for your excellent video. It was a real help!

  • @gren287
    @gren287 5 років тому +1

    Thanks for the lesson Luis :)

  • @lakpanuru3400
    @lakpanuru3400 10 місяців тому

    love u for making my life so much easier. And adding fuel for passion in learning. This video helped a ton.

  • @GiwooLee
    @GiwooLee 5 років тому +1

    Best video I've seen on Perceptron Algorithm hands down. Thank you Luis!

  • @uzairfarooq7793
    @uzairfarooq7793 2 роки тому

    The best video I've come across to understand perceptron algorithm concept... And believe me I've tried many! :-)

  • @MrGbruges
    @MrGbruges 2 роки тому

    Very good Luis. I am new in your channel. Im here because your book in grooking is nice

  • @DinaIlman
    @DinaIlman 5 років тому +3

    I hope you could create the "Maximum Entropy Markov Model" which training based with logistic regression but the test with Viterbi
    maximum entropy is logistic regression with more than one class

  • @antonioyt7719
    @antonioyt7719 5 років тому

    Gracias por compartir este video!

  • @Mandeep_Punia
    @Mandeep_Punia 3 роки тому +2

    Rather then picking the points randomly, what if we linearly iterate over the array of points? I think by doing this we can improve our model accuracy because in case of picking a random point it may happen that random function keep on picking some few points every time. Sir what do you think upon this?
    By the way, your explanation was really good

  • @francislow1767
    @francislow1767 4 роки тому

    Great content! Thanks so much :)

  • @gchumbes
    @gchumbes 3 роки тому

    excellent video thanks for sharing!

  • @MohamedMahmoud-ul4ip
    @MohamedMahmoud-ul4ip 5 років тому

    Amazing as always

  • @ali8283
    @ali8283 5 років тому +1

    Thank you for this video. :)

  • @philtoa334
    @philtoa334 2 роки тому

    Great video thank you so much.

  • @sandeepgill4282
    @sandeepgill4282 2 роки тому

    Lovely, thanks a lot dear.

  • @adriengardais8950
    @adriengardais8950 3 роки тому

    Thanks for that video !

  • @loyodea5147
    @loyodea5147 4 роки тому

    Thank you, once again!

  • @abdelobaid7681
    @abdelobaid7681 3 роки тому

    Very clear. Thanks.

  • @rizwandurrani3392
    @rizwandurrani3392 5 років тому

    Thank you so much. Its very easy to understand and your presentation skill are awesome. Sir would u please share the slides ??

  • @javiercarrillomartinez1289
    @javiercarrillomartinez1289 2 роки тому

    Wow, this is absoulute gold.

  • @berknoyan7594
    @berknoyan7594 4 роки тому

    In some videos about perceptron, lecturers say "if our total error is 0 (linearly separable) then perceptron algorithm finds that linear classifier after some iteration." Perceptron decreases the error but it may not be 0. And if perceptron finds minimum error linear classifier, we can call that as linear classifier as well. Not just a perfect one. Can you correct me about that Luis? Also thanks for your work, its a sound introduction.

  • @rodionromanovich3089
    @rodionromanovich3089 5 років тому +1

    THANK YOU SO MUCH!!!

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 роки тому

    Great for developing intuition!

  • @ojaswighate2588
    @ojaswighate2588 Рік тому

    Thank you for sharing it

  • @Viralvlogvideos
    @Viralvlogvideos 3 роки тому

    sir, your awesome the way u explain things are very simple and clear

    • @SerranoAcademy
      @SerranoAcademy  3 роки тому

      Thanks Indratej! There's a whole deep learning course I taught here (free)! www.udacity.com/course/deep-learning-pytorch--ud188

    • @Viralvlogvideos
      @Viralvlogvideos 3 роки тому

      @@SerranoAcademy sure i will check out sir thanks for sharing

  • @debshankarnaskar794
    @debshankarnaskar794 7 місяців тому

    Sir, you are awesome, I have just started learning Data Science and your explanations really clear the fog from the picture. Thank you so much for putting such wonderful content on internet. If you have any paid course on Data Science for beginners like me then please do share the link of that in reply of this comment. And once again, your explanations are just great, loved it❤

  • @paedrufernando2351
    @paedrufernando2351 5 років тому +1

    Nailed it... Thanks

  • @calvinsbrennholzverleih3588
    @calvinsbrennholzverleih3588 4 роки тому

    very nice video!

  • @sasna8800
    @sasna8800 4 роки тому

    Wow I have been month try to understand ML thank you a lot

  • @dhiahassen9414
    @dhiahassen9414 4 роки тому +6

    "Hello grandson, I have made cookies, love grandMa" ... that's obviously spam

  • @luisbermudez7000
    @luisbermudez7000 5 років тому +1

    Halfway into the video, I thought: "This is the Khan Academy of Machine Learning!" Really great explanations. One thing you didn't drive home as much, is that I could just code this up and it would work. I imagine this is still true though (for perceptron and logistic).

    • @SerranoAcademy
      @SerranoAcademy  5 років тому

      Thanks! Yes, I plan to start making GitHub lavs with videos, just need to get around it. :)
      If you have any code you'd like to share, lemme know and I'll link it!

  • @adorablecheetah2930
    @adorablecheetah2930 4 роки тому +1

    Can you please please make a video on maximum likelihood estimation or expectation maximisation

  • @abdelrhmanrhyaseen6194
    @abdelrhmanrhyaseen6194 2 роки тому

    wonderful Thanks

  • @GourangoModak
    @GourangoModak 4 роки тому +1

    Sir, Your explanation is very well. It helped me a lot. Thank you so much. Please make some others videos of ML.

  • @scherwinn
    @scherwinn 5 років тому

    Clever great!

  • @2107mann
    @2107mann 4 роки тому +1

    Watching for 3rd time.. not because I couldn't understand, but for the beauty and simplicity of explanation

  • @samyakjain7674
    @samyakjain7674 2 роки тому

    Please make the separate video on logistic regression that how it is different from linear. You mixed it with perceptron algorithm. You explained linear algorithm very well but I unable get clear understanding about logistic through this video.

  • @sharkk2979
    @sharkk2979 4 роки тому +1

    I love you!!!!😍

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 роки тому

    Can you do a video on variational bayed and KL divergence?

  • @luisbermudez7000
    @luisbermudez7000 5 років тому +1

    The gradient descent challenge might need some further help on "What is Gradient Descent?" I know there are lots of videos on this online, but do you have you you like or you produced?

    • @SerranoAcademy
      @SerranoAcademy  5 років тому

      Yeah, I need to do some serious material on gradient descent. I have something on a video called "A friendly introduction to deep learning", if you'd like to take a look.

  • @farzadfarzadian8827
    @farzadfarzadian8827 5 років тому

    You clever and clear my 5th grade son understands it.

  • @youssefdirani
    @youssefdirani 3 роки тому

    11:11 I thought the epoch is how many times we scroll through *all* the points, not how many points we pick to repeat the process of slightly moving the line. Am I wrong ? Thanks for help
    BTW, why is it called *Perceptron algorithm* ? It has nothing to do with perceptron ?

    • @asarafraz
      @asarafraz 3 роки тому

      you are right, I guess he is referring to batch not epoch

  • @luisbermudez7000
    @luisbermudez7000 5 років тому +3

    I kind of wonder why it's called Logistic Regression. Because it uses a Log-Based Error? Did Linear Regression use a linear error?

    • @SerranoAcademy
      @SerranoAcademy  5 років тому +3

      Yes great questions, I think it's because the log error, or the logit, which is the function sending everything to [0,1]. Although the strangest thing for me is that it's called logistic regression, even though it is not regression, but classification.
      Linear regression can use a quadratic error, or an absolute value (almost linear) error, so the reason it's called linear is because the output is a line.

  • @Shabbir2749
    @Shabbir2749 4 роки тому

    Sir, please explain ANCOVA & GLM

  • @abinashisingh758
    @abinashisingh758 4 роки тому

    when are you planning to finish Chapter 7 on Linear Regression of your book : Grokking Machine Learning

  • @nenslen679
    @nenslen679 5 років тому +2

    Hi Luis, great video! The way you explained these concepts was nice and easy to understand. I decided to implement the basic perceptron algorithm in python, feel free to check it out here:
    github.com/nenslen/perceptron
    I tried to use the same terminology as you did in the video (eg. red and blue points), so it should be easier to relate it to your explanation. If you end up taking a look, any comments or feedback are appreciated, thanks!

  • @hichamallaham3787
    @hichamallaham3787 6 місяців тому

    i want implementation of the following pseudo code :
    Step I: Start with a random line
    of equation ax + by + c = O
    Step 2: Pick a large number. 1000
    (number of repetitions, or epochs)
    Step 3: Pick a small
    0.01
    (learning rate)
    Step 4: (repeat 1000 times)
    Pick random point from
    If point is correctly classified
    Do nothing
    If point is incorrectly classified
    Add ± 0.01 to a
    Add ± 0.01 to b
    Add ± 0.01 to c help me

    • @SerranoAcademy
      @SerranoAcademy  6 місяців тому +1

      Definitely! HEre it is: github.com/luisguiserrano/manning/tree/master/Chapter_5_Perceptron_Algorithm
      In that same repo github.com/luisguiserrano/manning/ I have many others from the videos

    • @hichamallaham3787
      @hichamallaham3787 5 місяців тому

      🥰🥰😍😍@@SerranoAcademy

  • @4767039
    @4767039 3 роки тому

    The error is minimized as the derivative of the error function approaches zero.

  • @user-vf5di9nz4s
    @user-vf5di9nz4s Рік тому