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

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 447

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

    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

  • @Charmingenby
    @Charmingenby 4 роки тому +38

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

  • @SohamPaul-xy9jw
    @SohamPaul-xy9jw Рік тому +11

    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

    • @satyazigyansu6873
      @satyazigyansu6873 11 місяців тому

      it is overfitting bro

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

      @@satyazigyansu6873 accuracy is varies with random state and test size
      random state = 42 and test size = 0.2 then accuracy = 100%
      random state = None and test size = 0.3 then accuracy is around 97% and it varies every time

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

      @@satyazigyansu6873 no brother it depends on dataset whether it is testing or training. If it is on testing dataset then it is not overfitting, if it is is on training dataset then it is overfitting.

  • @maruthiprasad8184
    @maruthiprasad8184 2 роки тому +5

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

  • @PoojaPatel-bi4wr
    @PoojaPatel-bi4wr Рік тому +4

    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.

  • @kashifahmad93
    @kashifahmad93 3 роки тому +4

    Got 96.66% accuracy.....while 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..

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

      That’s the way to go Kashif, good job working on that exercise

    • @RahulRaj-cy1xb
      @RahulRaj-cy1xb 3 роки тому

      Bro we need to download exercise from kaggle? As sir only uploaded image on github

    • @parththakor7362
      @parththakor7362 7 місяців тому +2

      @@codebasics accuracy is varies with random state and test size
      random state = 42 and test size = 0.2 then accuracy = 100%
      random state = None and test size = 0.3 then accuracy is around 97% and it varies every time

  • @ritikpratapsingh9128
    @ritikpratapsingh9128 4 роки тому +3

    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 !!

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

    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")"

    • @russnagel1
      @russnagel1 3 роки тому +3

      Thank you very much. You just saved me a big headache. I had the warning and came looking to the comments for help. Great job.

    • @Kikeina
      @Kikeina 3 роки тому +1

      @@russnagel1 Happy to see that the comment is helping somebody. You made my day.

    • @dhruvpathak1850
      @dhruvpathak1850 Рік тому +1

      Very helpful, I tried using max_iter / n_iter to 200, in the model.fit() part, but that didn't work either.. eventually, it's your suggestion that did work!

    • @drpebba2679
      @drpebba2679 Рік тому +1

      my savior

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

      u can also use standard scaler

  • @mabelkarani
    @mabelkarani 3 роки тому +41

    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.'

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

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

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

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

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

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

    • @digvijaymahamuni7722
      @digvijaymahamuni7722 3 роки тому +1

      i got 94.73%
      does it vary? or have I done any mistakes?

    • @fazalahmad1546
      @fazalahmad1546 3 роки тому +1

      I got 100.0%

    • @fazalahmad1546
      @fazalahmad1546 3 роки тому +1

      @@digvijaymahamuni7722 this is due to a very small dataset

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

      @@fazalahmad1546 check for overfitting

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

      Hey guys chill it isnt like you guys working in backend developing library. also it is relatively clean dataset already.

  • @radhedhabas
    @radhedhabas 9 місяців тому +1

    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.

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

      accuracy is varies with random state and test size
      random state = 42 and test size = 0.2 then accuracy = 100%
      random state = None and test size = 0.3 then accuracy is around 97% and it varies every time
      for best way choose random state = 42 or 10

    • @nandithass7326
      @nandithass7326 2 місяці тому

      pls provide the code

    • @radhedhabas
      @radhedhabas 2 місяці тому

      @@nandithass7326 please look exercise section in given notebook: colab.research.google.com/drive/1ayUBBqEvH-mDkYHVqMFO6-nlWRyZhyNt?usp=sharing, as I'm using sklearn, accuracy varies every time.

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

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

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

      I got an accuracy of 1 with test_size=0.2.

    • @RahulRaj-cy1xb
      @RahulRaj-cy1xb 3 роки тому

      Bro we need to download exercise from kaggle? As sir only uploaded image on github

    • @nandithass7326
      @nandithass7326 2 місяці тому

      pls provide the code

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

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

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

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

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

      That’s the way to go Harsh, good job working on that exercise

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

    Thank you. I wish I had discovered your channel 6 months ago. I could have saved so much time.

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

    As always great video. Greetings from Brazil!

  • @rehanabbas4661
    @rehanabbas4661 Рік тому +1

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

  • @stanlukash33
    @stanlukash33 3 роки тому +4

    I CAN'T SAY THIS ENOUGH - THANK YOU!

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

    finalllllly I understood how to interpret confusion matrix for multiclass classification thankyou!!!!

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

    Thanks sir. Simply you are great for such type of free courses.Nice service to society

  • @-theworldofscience4153
    @-theworldofscience4153 2 роки тому +1

    The contents are actually very engaging and helps u tolearn complex topics very easily

  • @MdAbdurRahaman-f2d
    @MdAbdurRahaman-f2d 2 місяці тому

    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

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

    probably the best tutorial series for beginner thank you!!!!!

  • @achelias8477
    @achelias8477 3 роки тому +1

    On my way to watch your whole playlist. You are a great techer! I got accuracy 95.6%

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

      👍😊 wish you all the best

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

      Can you share your solution ?

    • @aaditstudent
      @aaditstudent Рік тому +1

      What parameters did you use for the LogisticRegression model?

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

    got accuracy of 93.34%. Thanku very much really addicted to your videos.

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

    One of the best tutorial... Thankyou so much...It is very helpful and informative.... I wish to see more videos on other topics...

  • @yoshidasan4780
    @yoshidasan4780 2 роки тому +2

    Thank you so much sir !I am so so grateful to you for these wonderful tutorials ,hope i can learn even more and faster.Btw i got my accuracy as 97.77 !

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

      Bro I got the same but is it correct? How can accuracy be so high? Please can you explain

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

      @@pranav9339 because the trends are very similar in the test set data too ig and the variance is also low ...that's the reason i think

  • @liangyumin9405
    @liangyumin9405 6 років тому +2

    Nice tutorial, I have forked your project PY .THX

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

    I got 100% accuracy for the iris exercise. Sir give more exercise. These are very helpful, thanks a lot sir

  • @tcsanimesh
    @tcsanimesh 6 років тому +3

    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 ...

  • @vishnuvardhan-wq5qi
    @vishnuvardhan-wq5qi 5 років тому +2

    my model is 100 percent accurate for iris dataset. thanks for teaching all the topics which are really important in a clean and clear way.

  • @pallawkumar9846
    @pallawkumar9846 6 років тому +2

    Thank you for these awesome tutorials. Please upload next tutorials.

  • @raghuvamsiyaram7248
    @raghuvamsiyaram7248 Рік тому +1

    I got 96.66 accuracy. Thanks.

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

    Is there no Exercise solution?

  • @AnanyaRay-ct8nx
    @AnanyaRay-ct8nx Рік тому

    got 93.33% accuracy. Thank u so much for this playlist..

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

      i also got 93.33% accuracy can you please tell me how you did it I want to cross check my procedure.

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

    nice tutorila.... by watching your tutorials lot of people are opeining institutes in Hyderabad

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

      Ha ha.. are you serious? 😊

  • @yoniziv
    @yoniziv 3 роки тому +1

    Very clear, thank you!

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

    you are a great teacher....
    thank u for this series

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

    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!

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

      Perfect and keep it up. The dataset is small hence getting accuracy of 1 is not unusual

    • @vedanthbaliga7686
      @vedanthbaliga7686 3 роки тому +1

      if you have given random_state or shuffle=True then the accuracy will be 1

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

      @@vedanthbaliga7686 even without a random_state or shuffle it s still possible to get 1, it s all due to the fact that our dataset here is small

  • @mojojojo1854
    @mojojojo1854 6 років тому +15

    please do tutorials on Computer vision using Tensorflow

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

    getting a score of 1.0, by using newton-cg solver. Default LogisticRegression() shows warning. You can use model = LogisticRegression(solver = 'newton-cg', multi_class='auto') for better training and accuracy.

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

    Another awesome video! Thank you

  • @pakpoomtivarkornkit8525
    @pakpoomtivarkornkit8525 6 років тому +2

    Thank you so much....liked and subscribed.

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

    really appreciate your hard work. from your videos it was super easy to learn the concept . thank you

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

    Awesome. Thanks for sharing. I love the way you teach topics. So easy to understand. Thanks again.

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

      Yup nitin, things don't have to be taught in a hard way.. there is always an easy way to explain the concepts :)

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

    Awesome exercise! I got an accuracy of 97, 77%

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

      Can you please provide the solution link as it is not there on github? It would be helpful.

    • @cindinishimoto9528
      @cindinishimoto9528 4 роки тому +15

      Hi, @@aditinagar6688​. Please see below:
      iris = load_iris()
      print(dir(iris))
      df = pd.DataFrame(iris.data, columns=iris.feature_names)
      print(df.head())
      df["target"] = iris.target
      print(df.head())
      df["target"].replace({0: "setosa", 1: "versicolor", 2: "virginica"}, inplace=True)
      print(df.head(-10))
      x = df.drop(["target"], axis=1)
      y = df["target"]
      from sklearn.model_selection import train_test_split
      x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.3)
      print(len(x_train))
      print(len(x_test))
      from sklearn.linear_model import LogisticRegression
      model = LogisticRegression()
      model.fit(x_train, y_train)
      print(model.score(x_test, y_test))
      print(model.predict(x_test))
      #print(y_test)
      print(model.predict([[4.9, 3.0, 1.4, 0.2]])) #setosa
      y_predicted = model.predict(x_test)
      from sklearn.metrics import confusion_matrix
      cm = confusion_matrix(y_test, y_predicted)
      print(cm)
      import seaborn as sn
      plt.figure(figsize=(10, 7))
      sn.heatmap(cm, annot=True)
      plt.xlabel("Predicted")
      plt.ylabel("Truth")
      plt.show()

    • @tejobhiru1092
      @tejobhiru1092 3 роки тому +1

      @@cindinishimoto9528 thank you so much..!
      this helps a lot.. i was not able to figure out how to handle that dataset!

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

      @@tejobhiru1092 ^_^

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

      @@cindinishimoto9528 i also need this exercise code very badly

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

    Thanks your tutorials are very clear and intutive and easy to understand.

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

      Rakesh, thanks for your kind words of appreciation

  • @tanoychowdhury6375
    @tanoychowdhury6375 6 років тому +3

    Sir,
    Please make videos on other topics of machine learning like k nearest neighbour , support vector machines. Your videos are very very helpful. please continue this series.🙏🙏

    • @orangewares
      @orangewares 6 років тому

      You can refer to videos of sentdex. The videos are much better including k nearest neighbor. ua-cam.com/video/OGxgnH8y2NM/v-deo.html

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

    Sir, you forgot to upload the iris flower Solution for ML exercise 8 in you github, there is only exercise description at the end of github file, no exercise folder, no solution.
    Your tutorial is awesome, everybody is following you to practice. Thank you for teaching us and can you please upload the solution, appreciated.

  • @87prak
    @87prak Рік тому +1

    You should have talked about what scikit logistic regression is doing under the hood for multiclass. The tutorial does not touch on that and simply runs the program as if it were binary class problem. Is it using n binary classifiers or a softmax, that is what should have been discussed here.

  • @vinodkinoni4863
    @vinodkinoni4863 6 років тому +2

    thanks for good tutorials

  • @rishipatel2221
    @rishipatel2221 3 роки тому +1

    Thank you so much for this invaluable series

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

      Glad you enjoy it!

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

      @@codebasics
      Kindly make a video on confusion matrix multiclass classification please 🙏

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

    Dear Sir
    Very interesting exercise.
    Model accuracy varies from 0.8 to 1.0, each and every time after a fresh run of the full code (as you explained). The average accuracy is around 9.66667.
    Thank you very much

  • @perikalasunny5698
    @perikalasunny5698 3 місяці тому +1

    sir in this video i think you took x and y axis reverse in labelling the cause in confusion matrix arguments its x and y respectively right?

  • @wasit-shafi
    @wasit-shafi 4 роки тому +1

    At 15:33 I thought you are going to say 'plz plz subscribe the channel, like, comment, share... :) Thank you sir for making such a great videos...

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

    In both Binary and Multiclass classification example, you have used the SAME algorithm i.e.
    from sklearn.linear_model import LogisticRegression
    model = LogisticRegression()
    Questions-
    1. Does it mean, from LogisticRegression perspective, it makes no difference whether it is binary or multiclass classification?
    2. Is there any model parameter that we can tweak to define the class boundary.
    Say, predict the output as -
    a) "Excellent", if probability> 0.8
    b) "Very Good", if probability >0.6 and 0.4 and 0.2 and

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

      It’s very late and I’m very tired, but in a nutshell, sometimes you can use regression as a classifier and sometimes binary classifiers are suitable for multiclass classifications!

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

    Good approach for coding the basic machine learning . Carry on

  • @asedaaddai-deseh8152
    @asedaaddai-deseh8152 6 років тому +3

    Thanks so much for these great tutorials! I wish you would upload the continuation of this playlist faster so we can learn fast.

    • @asedaaddai-deseh8152
      @asedaaddai-deseh8152 6 років тому

      @@codebasics Wow, I admire the fact that you're able to make these videos despite your busy schedule. Keep it up!

    • @anand.prasad502
      @anand.prasad502 4 роки тому

      @@asedaaddai-deseh8152 medium.com/trainyourbrain/would-you-read-this-article-or-not-b757d0e26cf8

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

    Can't express how grateful i am to you Sir.
    I am very willing to even pay for your stuff and help you somehow.
    Thanks once again, my accuracy was about 92%

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

      how much ratio test/train u use? i got 91...%

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

      @@zerostudy7508 20% of the data to be tested. But the accuracy depends as we are getting random data to be trained or tested. My opinion is that your model is correct, we just have different trained data.

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

      @@leooel4650 Thank you so much buddy, i just checked that if i use 90% data for train and 10% data test i get 88-90% acuracy, but when i use 80% the data for training i got everage more than 90-100% accuracy. i'll tell you when i figured something out....

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

      @@zerostudy7508 happy to help as I am still figuring things out.

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

      @@leooel4650 i got it
      it something to do with sample and population'
      if test A=20 and test A=10
      then they both got just 1 wrong answer
      A and B Standard Deviation Sample are
      A=0.217944947
      B=0.316227766
      about 10% difference
      in a nutshell its sound like this:
      your teacher give 10 questions for exam and your friend got 100, if both of you had 1 wrong answered in the exam, which of you have the highest test score ?
      have a nice day

  • @foreveryour11
    @foreveryour11 Рік тому +1

    At 12.17 what we predicted was for X_test. Why did we compare the Y_test and X_predictions? Am i understanding it wrong?
    😀

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

    Thank you so much sir :)
    I loved the tutorial! , got an accuracy of 97.72 %

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

    simply amazing

  • @nastaran1010
    @nastaran1010 9 місяців тому

    Thanks a lot, very clear

  • @naveenkalhan95
    @naveenkalhan95 4 роки тому +3

    @12:47 maybe not that important.. but just for my clarification, I would like to confirm... should plt.xlabel not be 'Truth' and plt.ylabel be 'Predicted' ? Thank you for your hard work.

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

    Excellent explanation

  • @mlTS7626
    @mlTS7626 11 місяців тому

    Superb content, liked this very much
    12:50, maybe there's a simple mistake that xlabel should be Truth while ylabel should be Predicted, as we have defined cm in that way

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

    Wow, Your videos are amazing!
    And i got an accuracy of 96%

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

      great. thanks for working on exercise and congrats on getting such a high accuracy score. Good job :)

    • @vinays.m6831
      @vinays.m6831 5 років тому

      Sir can u send me that code please... I am not getting that so...

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

      @@vinays.m6831 PFB code. Please let me know if anything is incorrect.
      import pandas as pd
      import matplotlib.pyplot as plt
      from sklearn.datasets import load_iris
      from sklearn.model_selection import train_test_split
      from sklearn.linear_model import LogisticRegression
      iris = load_iris()
      x_train, x_test, y_train, y_test = train_test_split(iris.data, iris.target, test_size=0.2)
      irisModel = LogisticRegression()
      irisModel.fit(x_train, y_train)
      targetIndex = irisModel.predict(x_test)
      for i in range(len(targetIndex)):
      print(iris.target_names[targetIndex[i]])
      irisModel.score(x_test,y_test)

  • @rajatpati8808
    @rajatpati8808 6 років тому +1

    Waiting for your next videos. Hope you will upload soon.

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

    Very helpful, thanks!

  • @AlonAvramson
    @AlonAvramson 3 роки тому +1

    Thank you for explaining this in such a nice and easy way. BTW, I downloaded the whole GIT files but could not find the exercise solution for this session, so If some one has a clue please let me know.

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

      Yaa the answer for this exercise is not in the file. I solved the exercise, you can also try in the same way as in the model problem. but in the Handwritten digit problem, i got an error when fitting the model :( , i cant correct the error. It showing 'str' object has no attribute 'decode'. Can you help me to come out from this.

    • @RahulRaj-cy1xb
      @RahulRaj-cy1xb 3 роки тому +2

      Bro we need to download exercise from kaggle? As sir only uploaded image on github

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

    Thank you and practice exercises are useful as well

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

      Glad you liked the exercises Vishnu

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

    I got 100% accuracy with 20% test size 😍😍😍
    A big salute to this teacher

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

    Amazing content you make it all seem easy

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

      Glad you liked it Mohammed.

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

    Great job, Thank you ver much

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

    Sir your way of describing things is very easy to grab and understand. Thank you for the tutorial. I request you to please also make a few videos of analyzing data (statistics) before using it into a model. Like variable correlation, and what variable should be used and which one should be dropped, etc.

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

      point noted kuldeep and thanks for your appreciation. I want to add lot more content but unfortunately facing health troubles. once i recover I will be back with full force :)

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

    Amazing lecture! I got an accuracy of 93.3%

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

    that was awesome🤩🤩

  • @rajareivan2417
    @rajareivan2417 Рік тому +1

    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?

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

    How to visualize decision boundry through plot and how to optimize using log loss function, and whatever you are teaching that teaching everyone.

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

    Sir done with the assignment. Got 100% train accuracy for iris dataset and also plotted the confusion matrix.

  • @Mugiwara.r
    @Mugiwara.r 20 днів тому

    thanks i really love the exrices, eventhough i always cheating when im doing the exrices

  • @anandsingh1011
    @anandsingh1011 6 років тому +1

    Your all video on any topic have deep theoretical explained with notebook , Can you suggest good resource or book for Machine Learning ?

    • @orangewares
      @orangewares 6 років тому

      ua-cam.com/video/OGxgnH8y2NM/v-deo.html

  • @mansoorahmed4150
    @mansoorahmed4150 3 роки тому +1

    nice explanation. I have one question. What about if we have mix of dependent variables data, like binary as well multiclass v variables, is it fine we apply multiclass regression?

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

    I got 100% accuracy🎉🤩

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

    Love ur videos! , but how is this example muticlass we are just using target and data. Thanks

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

    Loving your Lectures sir.
    Could you please use any best deep learning model for this dataset.
    Or Suggest me one. :)

  • @codebasics
    @codebasics  4 роки тому +3

    Complete machine learning tutorial playlist: ua-cam.com/video/gmvvaobm7eQ/v-deo.html

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

      I solved the exercise and my model got an accuracy of 96.67%
      Thanks for making such great videos.

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

      @@anujvyas9493 can you please send the solution..i also got same accuracy but unable to do prediction

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

      @@sonalgarg5628 Sure! Email ID ?

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

      @@anujvyas9493 sonal.garg@gla.ac.in

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

      @@sonalgarg5628 Sent it to you! Sorry for the late reply.

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

    In the confusion matrix, does the x-axis always represent the predicted data??????????????
    In the exercise, I got accuracy of 93.3%. Thanks for the video.

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

    Good video.

  • @sanooosai
    @sanooosai 8 місяців тому

    thank you

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

    100% accuracy.
    Thank You Sir.

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

    great

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

    accuracy=93.3%
    thankyou sir

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

    I got an accuracy of 100% in excercise!!!!

  • @usama57926
    @usama57926 3 роки тому +4

    But how is this working..... I mean logistic regression is a binary classifier.... how can it classify multiple classes................ ❓❓❓ ❓❓❓

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

      Watch his previous videos first part carefully

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

    Very informative. As per my understanding LR model predicts the binary classification problem. It would be great if you can share how this predicts this multi class problem?

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

      Check machine learning tutorial playlist on my channel. I have example for binary classification as well and in fact this particular tutorial is for multiclass classification

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

    awesome!

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

    Sir Thanks for Great video
    I have Small doubt
    in confusion matrix we pass the params like
    confusion_matrix(y_test,y_predict)
    in that case x-axis -> y actual [truth]
    y-axis -> y predicted
    but while giving label you given
    plt.xlabel('predicted')
    plt.ylabel('truth')
    i didn't understand this step sir