Multiple Linear Regression | Geometric Intuition & Code

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • This video simplifies the concepts, providing a clear understanding of how to implement Multiple Linear Regression in Python. Enhance your regression skills with this hands-on tutorial.
    Code used: github.com/cam...
    Plotly: • Plotly tutorial for be...
    Hyperplane : • Equation of a Hyper-pl...
    ============================
    Do you want to learn from me?
    Check my affordable mentorship program at : learnwith.camp...
    ============================
    📱 Grow with us:
    CampusX' LinkedIn: / campusx-official
    CampusX on Instagram for daily tips: / campusx.official
    My LinkedIn: / nitish-singh-03412789
    Discord: / discord
    E-mail us at support@campusx.in

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

  • @SonuK7895
    @SonuK7895 2 года назад +60

    He is not a teacher , He is a Savior ❤

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

    Firstly the explanations are too good and one of the best that I have come across.Thank you!
    There is one small correction to the code in github. At line 224... the final data set is used before it has been created so it would throw an error. It should be as below.
    xGrid, yGrid = np.meshgrid(y, x)
    final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
    z_final = lr.predict(final).reshape(10,10)
    z = z_final

    • @SagarGupta-ue1dr
      @SagarGupta-ue1dr 2 года назад

      can someone pin the link of one note

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

      Thank very much bro you made my day

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

      Really thankful 👍👍👍👍 I was in trouble due to this error only from past 2 days

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

      NameError: name 'final' is not defined:
      The issue in your focal cell is that the variable final is not defined before it is being used in the lr.predict() method. This is why you are getting a NameError stating that 'final' is not defined.
      To fix this issue, you need to move the line of code where final is defined before the line where lr.predict() is called. Here's the updated code:
      [By defining final before using it in the lr.predict() method, the error should be resolved.]
      x = np.linspace(-5, 5, 10)
      y = np.linspace(-5, 5, 10)
      xGrid, yGrid = np.meshgrid(y, x)
      final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
      z_final = lr.predict(final).reshape(10,10)
      z = z_final

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

      thanks a lot man. Saved a lot of time

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

    The quality of these videos is way greater than the paid platforms. The patience with which he explains and the clarity of doubts that students might have is incredible. Thank you Sir.

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

    Happy Teachers Day Sir.. I am fresher in Data Science from a non-coding background and I have learned a lot from your videos. Thanks a lot for such good and explanatory videos.

    • @subashri3707
      @subashri3707 2 месяца назад

      Same nanum data science student

  • @iftikharahmad2481
    @iftikharahmad2481 Год назад +13

    wahoo amazing, I don't find such a great teacher in my life He was a gem. Look how he explains very simply and amazingly.

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

    your explanation is clear to understand the multiple linear regression topic, thankyou for sharing your knowledge to the data science community

  • @abhinagmal1940
    @abhinagmal1940 2 года назад +11

    CampusX having best content than others , Thank You Sir!!!

  • @suyashdongre
    @suyashdongre Год назад +2

    I Think I found a hidden gem on RUclips. THANK YOU SO MUCH for making such high quality videos :)

  • @AkashKumar-bs9cv
    @AkashKumar-bs9cv 2 года назад +6

    you are awesome , i have never seen content like this . your teaching style is great

  • @studentstruggle7450
    @studentstruggle7450 8 месяцев назад +1

    teaching manner is amazing tq great sir

  • @ashfx007
    @ashfx007 Месяц назад

    you have explained this very well , Iam on a data science professional course but still referring your videos to understand it
    thank you

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

    You are fantastic sir, you are really teach in-depth, Thank You so much sir👌👌

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

    CampusX having best content than others , Thank You Sir

    • @749srobin
      @749srobin 2 года назад

      lets complete the ML playlist together , lets connect on discord . what u think?

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

      @@749srobin definitely

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

      @@core4032 complete ho gya to?

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

    Best channel on youtube to learn data science, Specially in hindi

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

    sir u r superb really i paid fees for this course in simplilearn but its worst n u r best of best

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

    aap bhut aacha padhate h

  • @mdmojiburbabu
    @mdmojiburbabu Год назад +4

    NameError: name 'final' is not defined:
    The issue in your focal cell is that the variable final is not defined before it is being used in the lr.predict() method. This is why you are getting a NameError stating that 'final' is not defined.
    To fix this issue, you need to move the line of code where final is defined before the line where lr.predict() is called. Here's the updated code:
    [By defining final before using it in the lr.predict() method, the error should be resolved.]
    x = np.linspace(-5, 5, 10)
    y = np.linspace(-5, 5, 10)
    xGrid, yGrid = np.meshgrid(y, x)
    final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
    z_final = lr.predict(final).reshape(10,10)
    z = z_final

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

      Bruh are you a fresher? I mean how can you do those? I have no clue whatsover

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

      x = np.linspace(-5, 5, 10)
      y = np.linspace(-5, 5, 10)
      xGrid, yGrid = np.meshgrid(y, x)
      final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
      z_final = lr.predict(final).reshape(10,10)

  • @anubhavrai5612
    @anubhavrai5612 5 месяцев назад

    Hats off to you man👒, never learned 3d plane like this before...

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

    Thank You so much for clear explanation.content is vey good than other channels

  • @preeti3240
    @preeti3240 2 месяца назад +1

    such a great man , hats off you !!🙌

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

    Best Explanation Ever Love your Videos

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

    Thank uh so much sir for explaining so nicely 👍👍

  • @vikashgupta-ec6wq
    @vikashgupta-ec6wq 9 месяцев назад

    truly a gem
    great teaching

  • @ParthivShah
    @ParthivShah 7 месяцев назад +1

    Thank You Sir.

  • @aman7598
    @aman7598 12 дней назад

    amazing explanation, but in video there is a echo problem

  • @Ajay_Verma45
    @Ajay_Verma45 11 месяцев назад

    Very nice explanation. Thank you sir

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

    Really helpful lecture.
    Thanks sir😀

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

    I have become your fan sir

  • @creatortoro3513
    @creatortoro3513 5 месяцев назад

    sir in this
    x = np.linspace(-5, 5, 10)
    y = np.linspace(-5, 5, 10)
    xGrid, yGrid = np.meshgrid(y, x)
    z_final = lr.predict(final).reshape(10,10) # here final in not defined
    z = z_final
    final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
    'final' is not defined

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

    greatest teacher ever!

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

    Thanks for the lesson.
    Only a problem. The variable "final" is not defined.

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

    For the first time in my life, I am enjoying maths.

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

    Hello sir,
    Recently I watched your Multiple Regression video and after I that started to work upon a Prediction problem. After completing all the steps then I tried to plot Regression Plane onto that but I am unable to do so. I have 5 I/P columns and 1 O/P col. Can u please help me with this.

  • @something_went_wrong167
    @something_went_wrong167 11 месяцев назад

    Thankyou sir for this informative video

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

    Thank you sir , god bless you ❤️❤️❤️ you are great .

  • @19_ec_animeshshukla48
    @19_ec_animeshshukla48 Год назад

    I dont know how should i thank u sirr

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

    Very nice explanation. Thank you sir❤️💯

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

    Great Explanation

  • @Whymetho.
    @Whymetho. 7 месяцев назад +1

    You used "Final" in the code but it was not declared before so it is giving error

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

    best content out there

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

    Hi Sir, Can i use these videos as reference for blog post

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

    sir which notepad do you use for making digital notes

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

    Guru ji Pranaam

  • @ruchikumari5868
    @ruchikumari5868 8 месяцев назад

    Thankyou sir

  • @PiyushKumar-ku6yz
    @PiyushKumar-ku6yz Год назад +1

    Whoever is getting the 'final' name not defined error just move the "final = np.vstack((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
    " right before "z_final = lr.predict(final).reshape(10,10)".

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

    Sir you are great

  • @paritoshkumar7422
    @paritoshkumar7422 8 месяцев назад

    Awesome SIr

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

    Thank you sir

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

    you are great

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

    Sir, I'm facing issue at 18:16
    ---------------------------------------------------------------------------
    NameError Traceback (most recent call last)
    in ()
    2 y = np.linspace(-5,5,10)
    3 xGrid,yGrid = np.meshgrid(y,x)
    ----> 4 z_final = lr.predict(final).reshape(10,10)
    5 z = z_final
    6 final = np.vstake((xGrid.ravel().reshape(1,100),yGrid.ravel().reshape(1,100))).T
    NameError: name 'final' is not defined
    working in google colab.....anyone pls help

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

    Bro i do ppt multiple linear Regression what i can do

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

    where is forward selection and backward elimination

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

    great sir

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

    hidden gem

  • @JACKSPARROW-ch7jl
    @JACKSPARROW-ch7jl Год назад

    Thanxxx

  • @kindaeasy9797
    @kindaeasy9797 9 месяцев назад +1

    n dimension wali eq galat hai, vo n+1 dimension ki ho gyi

  • @AbdulRahman-zp5bp
    @AbdulRahman-zp5bp 2 года назад

    UNDERRATED!!!!

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

    Thanks a lot sir:)

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

    sir! how to solve this error
    NameError Traceback (most recent call last)
    in ()
    3 y = np.linspace(-5, 5, 10)
    4 xGrid, yGrid = np.meshgrid(y, x)
    ----> 5 final
    6 z_final = lr.predict(final).reshape(10,10)
    7
    NameError: name 'final' is not defined

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

    please upload more and more video

    • @749srobin
      @749srobin 2 года назад

      this is my first ML algorithm , Would continue the playlist , need a study companion to learn things better through discussions and trial and run , would you like to join ? your comment is recent so thought of asking you first

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

    sir can you provide these notes

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

    G.O.A.T.

  • @YashGaneriwal-je6rh
    @YashGaneriwal-je6rh Месяц назад

    done

  • @SagarGupta-ue1dr
    @SagarGupta-ue1dr 2 года назад

    can someone pin the link of one note

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

    hello