How to do Multiple Linear Regression in Python| Jupyter Notebook|Sklearn

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 194

  • @cowjacketstudiostm5902
    @cowjacketstudiostm5902 3 года назад +21

    Literal queen. Been crying for a week over this. I could've just watched this, this is amazing.

  • @omarelliottgreen823
    @omarelliottgreen823 2 года назад +18

    After 6 hours of stumbling through StackOverflow and various books, this video made it clear in 20 minutes!
    Thank you SO MUCH!!!

  • @mizanalisayed9022
    @mizanalisayed9022 3 года назад +3

    Since 2 days i am trying to understand ML. Finally abhi ache se samajh gaya. Thanks

  • @tammu478
    @tammu478 2 года назад +1

    Beginning my ML journey. Thank you for the crisp explanation.

  • @JewelWildmoon
    @JewelWildmoon 2 года назад +9

    Quick extra note for anyone since I was stuck on it for a bit.
    If you have any columns you want to exclude beforehand (for me, it kept picking up data with string values too and I wanted to exclude those), run this first for those columns before defining x and y:
    data_df.drop(['Column1', 'Column2', 'etc..'], axis=1, inplace=True)
    Using "inplace=True" will make it so those columns will stay out of the dataframe because if you define it as "inplace=False" or don't define it at all, those columns you removed will go back into the dataframe anyway. It wasn't used in defining x and y because we need the column PE to return to the dataframe.
    And thank you so much for this video miss Megha. I'm new to Python and have been struggling with this for an assignment for hours and this really helped me.

  • @b048peyyettipavankartikpra4
    @b048peyyettipavankartikpra4 6 месяцев назад +1

    Amazing video! This is my first project ever and I hope to continue further in my career of Data Science!

  • @shahzebmohammad9521
    @shahzebmohammad9521 3 года назад +9

    Simple, Clear, Concise. What else do you want?

  • @vikrantyadav7379
    @vikrantyadav7379 3 года назад +9

    This is the best tutorial i have come across ... simple ,easy and beautiful.
    Please upload other regression and classification problems.

  • @CFDAsmaaHadane
    @CFDAsmaaHadane 2 года назад +1

    Thank you for this very informative tutorial! Please keep uploading

  • @JawadAhmadKhan
    @JawadAhmadKhan 2 года назад

    one of the best explanations in very simple words... Bravo Miss Megha Narang

  • @nihinlolakukoyi5987
    @nihinlolakukoyi5987 2 года назад

    In wish I can give this video a million likes.... thank you very much.. this video was really helpful.

  • @indointanchannel
    @indointanchannel Год назад

    Thanks sist, you help me to understand about a long code becomes a short code. It's a smart video.

  • @alyaaazlan7794
    @alyaaazlan7794 Год назад +1

    This is sooooo Great!!!

  • @ranulmbalasooriya659
    @ranulmbalasooriya659 2 года назад +1

    Thank you so much for the clear explanation.

  • @samarthchakrawartiblogsand4809
    @samarthchakrawartiblogsand4809 2 года назад

    For a beginner this video is a big help!!

  • @yusiferzendric1489
    @yusiferzendric1489 3 года назад +1

    I only had difficulty in plotting the model, thanks a lot 😃😃👍👍

  • @EddyFisico
    @EddyFisico 10 месяцев назад

    This is a very good video! Thank you very much!

  • @sunandadebnath96
    @sunandadebnath96 2 года назад +1

    you are life saver

  • @cass1522
    @cass1522 2 года назад +1

    Thank you so much for the video!

  • @abdullahateeq1236
    @abdullahateeq1236 2 года назад +1

    Thank you for the visualization.... :)

  • @resreng
    @resreng 2 года назад

    Thank you so so so much for clearing the concepts.

  • @emanuelbyas9819
    @emanuelbyas9819 2 года назад +1

    Thank you so much! Super Clear!

  • @owonubijobsunday4764
    @owonubijobsunday4764 Год назад

    I liked the video, so I "Liked" and I "Subscribed"
    Thanks, MN

  • @EugegegeSky
    @EugegegeSky 2 года назад +1

    you are the best!!

  • @datawithalvin
    @datawithalvin 2 года назад +1

    thank you so much this video help me to understand the concept faster

  • @sudarshandev6369
    @sudarshandev6369 3 года назад +1

    Wow really its very easy to understand, Mam your sequence wise explanation is awesome.

  • @shantanulokhande1792
    @shantanulokhande1792 3 года назад +2

    Thank you so much. It was really helpful!!!

  • @bonganindlovundlonu3239
    @bonganindlovundlonu3239 2 года назад +1

    Awesome video. keep on doing great

  • @lookaway8496
    @lookaway8496 2 года назад

    So good! this is much simpler explanation. I love it

  • @avinashsiripuram1058
    @avinashsiripuram1058 3 года назад

    Great explantion ............ur work must be admired

  • @Kod.u
    @Kod.u 2 года назад +1

    Really helpful tutorial! Thank you.

  • @mallelasunny
    @mallelasunny 2 года назад +8

    Hi Megha...the explanation is neat and clean...right at the point. Very beautifully explained and the concept is clear. Can you please upload more videos on Logistic Regression, KNN, Random forest, Support Vector machines, Decision tree etc?

  • @taniacai5245
    @taniacai5245 3 года назад +1

    Hi Megha, thank you so much for the video! It helped me a lot in work.
    Really appreciate! hope you keep making that

  • @arjunramprasad6752
    @arjunramprasad6752 2 года назад +1

    Amazing tutorial!

  • @hanifullah1088
    @hanifullah1088 2 года назад +1

    Very clear and to the point . . . .kindly make similar videos for each topic such as Decision tree classifier etc

  • @special1_28
    @special1_28 2 года назад

    Hi Megha, you are a mega tutor indeed. You're more than awesome. Without any gaining, this is the best explanation and best perspective I have come across on youtube regarding ML. You're superb ma'am. I await more of your uploads.
    Thank you!

  • @ca2hill
    @ca2hill 2 года назад +1

    So useful!!! Thank You

  • @anuarohi2335
    @anuarohi2335 7 месяцев назад

    Very meaningful session, great explanation 👍

  • @ankitmaithani3558
    @ankitmaithani3558 2 года назад +1

    Great Ma'am

  • @pursuingperfectionn
    @pursuingperfectionn 2 года назад

    Simply Brilliant !!

  • @otenyop
    @otenyop Год назад

    Excellent!

  • @APPRENTINazmi
    @APPRENTINazmi 3 года назад +1

    very nice and easy teaching. Congrats.

  • @Deepsim
    @Deepsim 2 года назад

    I really like your well organized presentation structure!

  • @vinayshukla3800
    @vinayshukla3800 2 года назад +1

    GREAT WORK MEM👏👏👏👏👏

  • @myandrobox3427
    @myandrobox3427 2 года назад +1

    Excellent💯👍

  • @renato.aravena4051
    @renato.aravena4051 2 года назад

    Cleannn tutorial, the best of all, thx :))

  • @pinkysaikiadutta9752
    @pinkysaikiadutta9752 3 года назад

    Very nice explanation. Thanks!! for the explanation

  • @norahassan3407
    @norahassan3407 2 года назад

    very insightful many thanks for your impressive work

  • @DVijebahu
    @DVijebahu 3 года назад +1

    Clear and Nice explanation....

  • @wayneemery9276
    @wayneemery9276 2 года назад +5

    Should always perform a check for assumptions of Linear Regression when performing it. Otherwise, it can be dangerous or misleading.

    • @sixlife.official
      @sixlife.official 2 года назад

      Do you have any good material for guiding how to check those assumptions using the exercise presented in the video?

  • @dhaneshsarpale1718
    @dhaneshsarpale1718 3 года назад +1

    simple explanation... Thank you mam

  • @rabiulmallick8991
    @rabiulmallick8991 6 дней назад +1

    thank you miss

  • @greenfootprint2680
    @greenfootprint2680 Год назад

    Great breakdown! Liked and Sub 👌

  • @shakirullah5840
    @shakirullah5840 3 года назад

    Very nice video. Thank you so much and Best of luck--Shakir, Bangladesh

  • @jongcheulkim7284
    @jongcheulkim7284 3 года назад

    Thank you so much. This is very helpful.

  • @girishchhonkar9391
    @girishchhonkar9391 2 года назад

    Great explanation mam...just simple and smooth 😃..keep uploading videos

  • @AshrafulAlam-ms4gf
    @AshrafulAlam-ms4gf 2 месяца назад

    nice practical

  • @danielstafford6858
    @danielstafford6858 3 года назад +1

    brilliant video

  • @feralvarez8133
    @feralvarez8133 Год назад

    THANKYOU GREAT VIDEO

  • @SanaShaikh-sm7kz
    @SanaShaikh-sm7kz 3 года назад +1

    Thanks a lot..this video has helped me a lot in my project❤❤❤❤

  • @jaydeepraut820
    @jaydeepraut820 3 года назад +7

    Hi, your videos are awesome and easy to understand. Can you please upload the logistic regression, random forest, SVM and times series modeling videos with examples.

    • @MeghaNarang
      @MeghaNarang  3 года назад +2

      sure, will try to upload something soon

    • @jaydeepraut820
      @jaydeepraut820 3 года назад

      Thank you very much, and please upload with the dataset available on the internet, so that we can try on our own.

    • @billwindsor4224
      @billwindsor4224 2 года назад

      @@jaydeepraut820 did you try to search in Google for the dataset described, as she showed and explained it at the video timestamp @1:10 and following? As she describes this in the video, it is straightforward to search and find from Google.

  • @prabirdas8430
    @prabirdas8430 3 года назад +1

    Nice explanation 👍🏻

  • @adityajawla723
    @adityajawla723 3 года назад

    Hi Thanks for the informational video, it is very easy to understand.

  • @An-yq6oy
    @An-yq6oy 2 года назад

    Very useful

  • @ShiftKoncepts
    @ShiftKoncepts 6 месяцев назад

    Do you have a guide on how to do multiple variables if they are non linear? Meaning we’d have to use a polynomial method with degrees?

  • @gamingnews2716
    @gamingnews2716 3 года назад +1

    Mam plzz further model bi explain kardo...
    Waiting for your further ML lecture mam

  • @ayoajayi280
    @ayoajayi280 9 месяцев назад

    Hello Megha. Great video. But you did apply the scaler function to standardize the days. Why?

  • @abdikadirabdi6107
    @abdikadirabdi6107 7 месяцев назад

    Thank you for your nice explanation, can you upload more videos other modelling, please? thanks you mam

  • @richardosborn3810
    @richardosborn3810 3 года назад

    Thank you!

  • @yusufsedatozdemir5522
    @yusufsedatozdemir5522 2 года назад +1

    thank you so much

  • @محمدرئوفالماسی-ي8ف
    @محمدرئوفالماسی-ي8ف 4 месяца назад

    thanks for this video

  • @sreekanthreddy7452
    @sreekanthreddy7452 3 года назад +1

    Keep it up and make videos on other models too mam.

  • @olanrewajubakare3790
    @olanrewajubakare3790 3 года назад +4

    I really appreciate your work, however, I will like to point something I noticed out.
    The scatter plot you created for your result at the end of the analysis where you had the y_test plotted against the y_pred seems inaccurate to me. plt.scatter(y_test, y_pred) is supposed to indicate that your y_test is on the x-axis while your y_pred. is to be plotted on the y-axis. I believe what you should do is showcase the y_test and y_pred on the y-axis while you use a common x-axis for the two on the same plot.

    • @christopherwright361
      @christopherwright361 2 года назад +1

      Two different ways of showing the same basic thing. y_pred vs. y_test will form a 45-degree straight line if the data is perfectly predicted, whereas y_test and y_pred both vs. x_test will show the points overlapping each other, if perfectly predicted. However, because this is multiple regression, there isn't a single x variable, so you would have several of the latter plots. These are useful for certain diagnostics. However, a very common first plot is y_test vs. y_pred. Plotting residuals vs. y_test or x_test (one at a time) are also common charts to make.

  • @venkateshvajja3666
    @venkateshvajja3666 3 года назад

    Superb explanation madam thank you

  • @priyankasahu6629
    @priyankasahu6629 Год назад

    Thank you so much ❤️

  • @vijaybhatt8060
    @vijaybhatt8060 3 года назад

    simply awesome

  • @atoffice7323
    @atoffice7323 3 года назад

    very nice presentation..

  • @Pimentocompany_
    @Pimentocompany_ 2 года назад +1

    Hello I have this problem how can I solve it?
    (could not convert string to float: 'rainy')

  • @shashibhushan715
    @shashibhushan715 2 года назад

    how to perform regression for the following equation: time= ( pressure)^a + (concentration of fuel)^b + (concentration of oxidizer)^c + exp(d/Temperature). Here, time is dependent variable on pressure, concentration of fuel, concentration of oxidizer and temperature. How to set non-linear model like the above equation

  • @raj4624
    @raj4624 3 года назад

    Nice video mam .. God bless you ☺️

  • @yangelena7135
    @yangelena7135 2 года назад +2

    Hi thank you for sharing. But I am wondering how do you get the actual linear regression equation with sklearn

  • @chinojordan6485
    @chinojordan6485 3 года назад

    Gracias, me ayudo mucho tu video :)

  • @syeda8343
    @syeda8343 2 года назад +2

    Mam I got an error ln[8]
    Could not convert string to float:AT
    How to fix it? Can anyone tell me?

  • @chandrashakhar1800
    @chandrashakhar1800 3 года назад +2

    Could you please make a video on this topic from scratch without using the sklearn library to better understand the mathematics behind it or provide a useful link?
    Please...

    • @billwindsor4224
      @billwindsor4224 2 года назад

      @Chandra Shakhar start with the website she shows in her discussion of sklearn: scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html , which leads you to the technical explanation at: scikit-learn.org/stable/modules/cross_validation.html#cross-validation

  • @settydip3058
    @settydip3058 Год назад

    Nice video

  • @NK-vd8xi
    @NK-vd8xi 2 года назад

    What keyboard are you using? It sounds so soothing.

  • @wahu9578
    @wahu9578 2 года назад +1

    @ Megha, thank you for this. Have you done another video of a way to improve the model? If so, can you kindly share the link?

  • @samahabdalrahim3709
    @samahabdalrahim3709 3 года назад +1

    thanks a lot, please I want to know which algorithm is used (batch, stochastic...?) also can we show the cost function?

  • @rohanshet123
    @rohanshet123 2 года назад

    👌👌👌

  • @SandeepYADAVggn
    @SandeepYADAVggn 2 года назад

    Brilliantly explained. Can u make video for deployment of model to use with webpage/android or any programming language GUI through API . Also make such a beautifully explained video for ANN also.

  • @lekhrajmalviya4927
    @lekhrajmalviya4927 Год назад

    Very nice explaination. Could you please tell how we can get equation for the predicted model?

  • @tvnrrk
    @tvnrrk 3 года назад +1

    @Megha thank you so much for clear explanation. Much appreciated. can you pleased help to create video on how to improve model further.

    • @MeghaNarang
      @MeghaNarang  3 года назад +2

      sure, I will try to upload a new video soon

  • @sukh172
    @sukh172 2 года назад

    hello Megha, this is good one , easy for beginner ....kindly upload on clustering neural network also

  • @muheedmir7385
    @muheedmir7385 3 года назад +1

    amazing

  • @sam-mv6vj
    @sam-mv6vj 3 года назад

    Very well done mam,why didn't you do outlier treatment mam ?

  • @akshayjadhav2003
    @akshayjadhav2003 Год назад

    After define x & y print statement should be came in " str " how it is possible if all dataset and format as it is copy .🤔

  • @chaderdasha1467
    @chaderdasha1467 6 месяцев назад

    Could you please upload non-linear regression?

  • @jiwan-darshan.
    @jiwan-darshan. 4 месяца назад

    If we have two outputs in multiple linear regression model. What are the steps ?

  • @kenjalgundecha5870
    @kenjalgundecha5870 3 года назад

    Very Nice Megha..Just if you give some explanation of functions which are using then it will be more clear. Nice Attempt!!!

  • @petelok9969
    @petelok9969 2 года назад

    Fantastic tutorial. Question I have is if I wanted to test my model on another dataset how could I do it once I have my coefficients and intercept? Best Wishes Peter