Linear Regression And Residuals - Pandas For Machine Learning 28

Sdílet
Vložit
  • čas přidán 1. 07. 2024
  • In this video we'll finnish creating our Linear Regression Model using the Diabetes Dataset from SciKit-Learn.
    We'll Create our Linear Regression, then fit the data to our model and make our predictions.
    Then we'll get R2 Scores, Mean Squared Errors, Mean Absolute Erros, and the Intercept.
    Finally we'll create a scatter plot of the Regression as well as the Residuals.
    #pandas #codemy #JohnElder
    Timecodes
    0:00​​ - Introduction
    0:56 - Create Linear Regression Instance
    1:44 - Train The Model
    3:50 - Make Predictions From Testing Set
    5:45 - Get R2 Score, MSE, MAE, and Intercept
    8:28 - Explaining The Metrics
    11:58 - Graph The Scatterplot
    15:15 - Graph The Residuals
    17:34 - Conclusion

Komentáře • 26

  • @Codemycom
    @Codemycom  Před rokem

    ▶ Watch Entire Pandas Playlist ✅ Subscribe To My CZcams Channel:
    bit.ly/3wDKct8 bit.ly/2IGzvOR
    ▶ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take 50% off with coupon code: youtube50 bit.ly/2VC9WUN
    ▶ Get The Code:
    bit.ly/3PXPJBt

    • @carolmcsween-brooks3089
      @carolmcsween-brooks3089 Před 2 měsíci

      This is INCREDIBLE!!! I've been reading so many Python tutorials on this and gotten nowhere in understanding. These 3 videos made sense of over 25 hours of reading tutorials. Thank you. I have subscribed and bought the lifetime membership. You rock!!

  • @hgjghjkhify
    @hgjghjkhify Před 11 měsíci +2

    I watched videos 27 and 28 in this series to see how training/testing works together with linear regression. My online program sometimes requires us to learn certain concepts on our own, so I'm grateful for these. You explained everything clearly, and I was able to apply this to my own computer performance dataset, which is not as pretty, but now I know why! 😀

  • @ChanceMinus
    @ChanceMinus Před 2 měsíci

    Excellent series! I was able to brush up on my knowledge of Pandas and Linear Regression. Thank you for providing such helpful content.

  • @sushibooshi
    @sushibooshi Před měsícem

    this is taught so well! You should really do more machine learning videos

    • @Codemycom
      @Codemycom  Před měsícem

      Just started a new Machine Learning Monday playlist yesterday.

    • @ErenMC_
      @ErenMC_ Před měsícem

      @@Codemycom will you teach it in python too? I see you have started with R

    • @TkinterPython
      @TkinterPython Před měsícem

      @@ErenMC_ of course

  • @patricklandia1
    @patricklandia1 Před 4 měsíci

    Thanks for your videoo!!, is great, Greetings from Uruguay!

    • @Codemycom
      @Codemycom  Před 4 měsíci +1

      welcome!

    • @patricklandia1
      @patricklandia1 Před 4 měsíci

      it coming more content for models? , kind regrestion, classification and more ? Greetings !@@Codemycom

  • @ErenMC_
    @ErenMC_ Před měsícem +1

    13:38 Why have we used y.min,y.max here and why have you written it two times?

  • @CharlesIhara
    @CharlesIhara Před 11 měsíci

    Hi, thanks for the great tutorial! I was a little confused by your explanation of the intercept_ for LinearRegression at 11:18. How does the sign of the intercept tell you whether the target increases or decreases as the features increase? Wouldn't this information be discerned from the sign of the slope rather than the intercept?

  • @ErenMC_
    @ErenMC_ Před měsícem

    I have a question, the only way to make the model more accurate is to make the data for training more?

  • @ringogold
    @ringogold Před 21 dnem

    👍

  • @aenugulasheikdadapeer5336

    Sir please do more videos on machine learning algorithms

    • @Codemycom
      @Codemycom  Před rokem +2

      We'll see :-) I'm doing a deep learning with pytorch playlist at the moment.

  • @aj5686
    @aj5686 Před rokem +1

    Thank you for detailed tutorial👏. I have a doubt, How can we increase our accuracy from 45 to some higher value? Let's say 60-70%.. How can we do that? If possible please make a video on it. Thank you.

    • @Codemycom
      @Codemycom  Před rokem +4

      You don't. The data is what the data is. If you run an experiment and get a certain outcome...that's the outcome. You don't change the experiment to get an outcome that you like more...

  • @mariabelencuadros6199
    @mariabelencuadros6199 Před 4 měsíci

    Sir, would you like to teach at LFC ? My professor kinda dumb...

  • @skillpolice5348
    @skillpolice5348 Před 5 měsíci

    Who are here after completing the entire series 🙋‍♂