Machine Learning Tutorial Python - 3: Linear Regression Multiple Variables

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 721

  • @codebasics
    @codebasics  2 ปีที่แล้ว +12

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

    • @honeymilongton8401
      @honeymilongton8401 2 ปีที่แล้ว

      hii sir if possible can you please post slides also sir

    • @sglanka4335
      @sglanka4335 2 ปีที่แล้ว

      Sir i am your fan now, i finished my degree in statistics ,mathematics ,and computer scinece but we did not have any practise In machine learning , i am following you and try to learn in this very well and after that i want to build my own company , currently i am working as a combined maths teacher but i need to change my career as a data scientist , i love to learn from you sir

  • @flamboyantperson5936
    @flamboyantperson5936 6 ปีที่แล้ว +156

    After reading that you do this tutorial after 9 to 6 job I really appreciate your work and now I can understand why you take time to make a new video. It's really hard to give weekend for making videos because we already have lot of other things to do at weekend. Thank you so much for all the effort you put it's really awesome.

  • @ketan27j
    @ketan27j 5 ปีที่แล้ว +20

    After going through many youtubers, tutors, I was not able to start with the ML concepts,coding. Your content is awesome, very easy to understand. Thanks for these videos & your time. Appreciated...

    • @codebasics
      @codebasics  5 ปีที่แล้ว +2

      I am glad Ketan that this was useful to you.

  • @nayyershahzad8051
    @nayyershahzad8051 3 ปีที่แล้ว +78

    You are gifted with a great skill of conveying difficult things in an easier and simpler manner! Excellent work!

    • @codebasics
      @codebasics  3 ปีที่แล้ว +5

      Thank you! Cheers!

    • @narottamaswal3978
      @narottamaswal3978 3 ปีที่แล้ว +1

      @@codebasics Sir if I take the same area, rooms and age given in the csv then why its not showing the same price as that ?

    • @limbadhiren
      @limbadhiren 2 ปีที่แล้ว

      @@narottamaswal3978 yaa median are different...

    • @edu_tech7594
      @edu_tech7594 9 หลายเดือนก่อน

      @@limbadhiren I got the median value 4

  • @akhileshyadav9862
    @akhileshyadav9862 3 ปีที่แล้ว +15

    Most unrated vedio for regression
    I watched 5 videos including nptel,'s and edureka but you are great deserves millions like

  • @mdabuseum9991
    @mdabuseum9991 5 ปีที่แล้ว +5

    Exercise result:
    reg.predict([[2,9,6]])
    >>>array([[53205.96797671]])
    reg.predict([[12,10,10]])
    >>>array([[92002.18340611]])
    Note : my result is little bit different from your "exercise_answer.ipynb" because you told to take meadian of test_score but did mean.
    your result:
    reg.predict([[2,9,6]])
    >>>array([[53713.86677124]])
    reg.predict([[12,10,10]])
    >>>array([[93747.79628651]])
    Thanks for this amazing tutorial

    • @eternalsgaming2467
      @eternalsgaming2467 8 หลายเดือนก่อน

      Can you tell how did you convert the experience string column to integer

    • @chetankumar5190
      @chetankumar5190 7 หลายเดือนก่อน

      @@eternalsgaming2467 from word2number import w2n
      df = pd.DataFrame(df)
      # Function to convert experience string to number and handle NaN
      def convert_experience(x):
      if pd.isna(x):
      return 0 # Replace NaN with 0
      try:
      return w2n.word_to_num(x) # Convert text to number
      except ValueError:
      return 0 # Replace non-convertible strings with 0
      # Apply the function to the 'experience' column
      df['experience'] = df['experience'].apply(convert_experience)
      # Print the DataFrame after conversion
      print(df)

    • @Tuoc_Nguyen
      @Tuoc_Nguyen 7 หลายเดือนก่อน

      @@eternalsgaming2467 import word2number
      word_list = df1.experience
      list_number = []
      word_list = word_list.dropna()
      for word in word_list:
      number = w2n.word_to_num(word)
      list_number.append(number)
      df1.loc[~df1.experience.isna(), 'experience'] = list_number
      this is my way

    • @priyam4680
      @priyam4680 6 หลายเดือนก่อน +1

      @@eternalsgaming2467 dfHiring['experience'] = dfHiring['experience'].apply(lambda x: w2n.word_to_num(x) if isinstance(x,str) else x)
      dfHiring['experience'] = dfHiring['experience'].fillna(0)

    • @shirohige614
      @shirohige614 2 หลายเดือนก่อน

      @@eternalsgaming2467 here you go sir
      df.fillna({'experience':'zero','test_score(out of 10)':md},inplace=True)
      df.experience = df['experience'].astype(str)
      df['experience'] = df['experience'].apply(w2n.word_to_num)
      pehle nan values ki jgh zero rakha fir in sabko string format mein change kiya and then word2number library ka use karke un sabko badla
      seedha w2n.word_to_num(df.experience) isiliye nhi kiya kyuki w2n ko ek ek value chahiye hoti h rather than a column
      hope so aapko samajh aaya ho brother

  • @DreadDomain-q3c
    @DreadDomain-q3c 4 หลายเดือนก่อน

    This video was posted 6 years ago but it's still very helpful and very understandable, when people on TH-cam were talking about linear regression i thought building a model would be very hard but it seems a bit easier and also sir you have an excellent talent to teach harder things to people like me . Thank you very much .

  • @fet1612
    @fet1612 5 ปีที่แล้ว +2

    9:00
    Now, we can find the predicted price of a house using the values we obtained. We have the equation,
    price = m1*area + m2*bedrooms + m3*age + b
    Now that we know the coefficients, m1, m2, m3, and the intercept, b, we can find the price.
    The given, the values of the three features will give us the predicted price, will be saved in our object variable,

  • @rohan2852
    @rohan2852 4 ปีที่แล้ว +31

    Hey, first of all thank you for the great tutorials.
    I'd like to point out one thing. Regression with multiple variables is "Multiple Regression" and not "Multivariate regression", unless we are predicting more than 1 outcome.
    Since in the video you are predicting only the price, i.e., only one output, it's "Multiple Regression".

    • @jamestanaka686
      @jamestanaka686 3 ปีที่แล้ว +1

      Yes, this video is about univariate multiple linear regression. I am actually looking for multivariate case.. I have a question here that is multivariate case just a repeated method of univariate case i.e. doing univariate iteratively for multiple DVs is equivalent to multivariate case?

    • @shahbazpathan1228
      @shahbazpathan1228 3 ปีที่แล้ว +1

      I spent half an hr to clear this confusion. Indeed, it is a multiple regression.

  • @arpitjain5394
    @arpitjain5394 ปีที่แล้ว

    Great video. As per my understanding, Linear regression with multiple variables and multivariate regression are two different concepts. Linear regression with multiple variables deals with a single dependent variable and multiple independent variables, while multivariate regression deals with multiple dependent variables.

  • @blownupdogsify
    @blownupdogsify 4 ปีที่แล้ว +2

    Thanks so much for this video, worked perfectly. You teach better than most teachers that have ever tried to teach me to code in my life .

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad it helped meow!

  • @moeintorabi2205
    @moeintorabi2205 4 ปีที่แล้ว +20

    For the exercise, to change the object numbers to int, we can also use the Lambda function as follows:
    df.experience = df.experience.map(lambda x:w2n.word_to_num(x))

    • @VikasSharma-ck1wx
      @VikasSharma-ck1wx 4 ปีที่แล้ว +1

      this snippet is not working throwing an error for using word 2 number file and showing error with word_to_num method

    • @priyanshunegi
      @priyanshunegi 4 ปีที่แล้ว

      Thanks buddy..👍

    • @SS-rz6rp
      @SS-rz6rp 2 ปีที่แล้ว +1

      @Jai Sharma try this: df.experience=df.experience.apply(w2n.word_to_num)

    • @kakumanigayatri5701
      @kakumanigayatri5701 2 ปีที่แล้ว

      @@SS-rz6rp still showing same error. i think this is due to NaN. will you pls explain this. i am confused

    • @Fatima-gw7sm
      @Fatima-gw7sm 2 ปีที่แล้ว

      @@kakumanigayatri5701 what type error?

  • @bunniesarecutest
    @bunniesarecutest 3 ปีที่แล้ว +8

    I spent so many hours trying to find answers and you answered all my questions in the video. Thank you very much! Excellent explanation!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Great to hear Elenie!

    • @jayvardhanjagarwal8973
      @jayvardhanjagarwal8973 3 ปีที่แล้ว

      Sir u know what is wrong here. When u predict price for area=3000, badroom=3 and age=40 then it will be 44000 (approximately) but when u change the age=15 in this. Then price 100% less then 56000. But your prize is increased in this case which is abnormal.
      Can u explain it.

    • @dulangikanchana8237
      @dulangikanchana8237 3 ปีที่แล้ว +1

      @@jayvardhanjagarwal8973 when the house is older the price of house value decreases.so that is why for area=3000, bedroom=3 and age=40 then predicted price will be 444,400 but when house is bit younger at same other features area=3000, bedroom=3 and age=15, predicted house price is 615,000. Yet i his actual data set for the features area=3000,age-15.bedroom=4, the actual price is 565,000, which is less than his predicted value for a house which is 15 years old,yet 3 bedrooms, as his model has a bit skewness.we cant expect models to be 100% accurate.but when they like over 80% accurate we use such models for our work purposes as they are fairly good models,difficult to get as such 80% or more accuracy

    • @meethamin427
      @meethamin427 3 ปีที่แล้ว

      hey did you solve the problem ?? can u please send me the code , I am having problem to change the experience column in string to int

  • @kishoresofi
    @kishoresofi 6 ปีที่แล้ว +5

    Hi there, i have watched a few of your videos on Pandas and LinearRegression since this morning and I must say, it is very easy to follow you. I appreciate you are not too fast allowing time to catch up. Thanks for the learnings.

  • @riajmahmud4303
    @riajmahmud4303 ปีที่แล้ว

    You are the best machine learning teacher in TH-cam.
    I discovered you so let but i hope i will cover up my project.

  • @fet1612
    @fet1612 5 ปีที่แล้ว +1

    10:28
    reg.predict(3000, 3, 40)
    Here, area = 3000, bedrooms = 3, age = 40. The output is an array of a value:
    array([444400.]).
    Notice, how this can be manually calculated.
    137.25*3000 + -26025*3 + -6825*40 + 383724.99999999983
    444399.9999999998 which is approximately equal to
    444400.
    Brilliant, codebasics
    !! Comprehensive. This simplified version of yours is highly commendable.

  • @sohamnavadiya6969
    @sohamnavadiya6969 6 ปีที่แล้ว +31

    I like the way you are explaining terms and logic. I realty appreciate your effort. Please share more video like this. Don't stop to make more video on machine learning. keep it up

    • @codebasics
      @codebasics  5 ปีที่แล้ว +3

      Soham thanks for the comment, yes I am continuing ml series with deep learning now

    • @travelclimb
      @travelclimb 4 ปีที่แล้ว +1

      @@codebasics very helpful! Thank for the videos and playlist

  • @TheuSh0w
    @TheuSh0w 6 ปีที่แล้ว +5

    Just wanted to thank you for your awesome teaching, keep up the good work! From all the content I've seen, yours is the most "hands-on" the perfect combination of theory and exercises applying said theory!

  • @abhayagrahary2801
    @abhayagrahary2801 4 ปีที่แล้ว +4

    This man teach in very easy way, while I'm so confused with linear and multiple regression, it give me a satisfied answer and rielf so, thanks❤ 😇

  • @binaykumar1616
    @binaykumar1616 3 ปีที่แล้ว +1

    The way you are explaining, means you love teaching. I am a teacher, and on the basis of my experience I must say that you should teach in engineering colleges may part time.

    • @helloworld2740
      @helloworld2740 3 ปีที่แล้ว +1

      sir he is already teaching in colledge
      Thank you

  • @shunsuke8301
    @shunsuke8301 7 หลายเดือนก่อน

    The videos are truly excellent! Although I rarely leave comments on educational videos, your concise video series has been incredibly beneficial to me. I appreciate the way you seamlessly integrate teaching with practical coding examples. Keep up the great work

  • @PaoloCondo
    @PaoloCondo ปีที่แล้ว

    Thank you! Here's a comment to boost your TH-cam algorithm! You deserve it.

  • @snehadatta6031
    @snehadatta6031 4 ปีที่แล้ว

    Hi,
    This works.
    First fill the blanks in the experience column with 'zero'
    ... and then use w2n.word_to_num
    df.experience = df.experience.fillna('zero')
    df.experience = df.experience.apply(lambda x: w2n.word_to_num(x))

    • @vidhanmaheshwari2082
      @vidhanmaheshwari2082 4 ปีที่แล้ว

      Thanks @Sneha Datta , it helped.

    • @ankitgaur7695
      @ankitgaur7695 4 ปีที่แล้ว

      Thanks a lot
      from where you got this code - " df.experience = df.experience.apply(lambda x: w2n.word_to_num(x))"
      why you have used "lambda x"
      it is not given in the original documentation at - pypi.org/project/word2number/
      i also checked the word2number official code snippet at github managed by the original contributer "Akshay Nagpal" -- github.com/akshaynagpal/w2n/blob/master/word2number/w2n.py.

    • @jaishankerkhatri1288
      @jaishankerkhatri1288 3 ปีที่แล้ว

      This really helped a lot! Thanks :)

  • @nazianuzhat5876
    @nazianuzhat5876 2 ปีที่แล้ว +1

    Your lectures is so good. At first I faced some problems for the word to number function. Even after installation I write "from word2number import w2n" on my code, but it wasn't work. Then I restart my jupyter notebook & now it is working well. :D

  • @arrahman100
    @arrahman100 6 ปีที่แล้ว +1

    Your videos are saviour and i was trying to learn ML from different sources but still find your tutorials the best. You have nice & crisp explanations. One humble request please upload more videos on ML.

    • @arrahman100
      @arrahman100 6 ปีที่แล้ว

      @@codebasics I pray for good health and will wait for more videos..Happy Diwali!!

  • @TheLebpl
    @TheLebpl 6 วันที่ผ่านมา

    These courses are soo good i decided to watch every add. Cheers. Thanks bro

  • @radhekrashna2148
    @radhekrashna2148 ปีที่แล้ว

    Thanks for providing amazing video
    Now I got to know about that codebasics is one of the top Indian channel for data science because you were uploading quality video with God explainetion from starting only
    I have seen many people they create short video and they just explain very easy concept so that people will feel bored and they will more reach to their channel and video

  • @subhajitadhikary155
    @subhajitadhikary155 4 ปีที่แล้ว +7

    you explain very clearly sir, really great.
    The predicted salary for first candidate is 53205.987
    for second guy is 92002.18

  • @bishnudas8638
    @bishnudas8638 7 หลายเดือนก่อน

    These are really amazing video lectures for Machine Learning and start off with. Thank you.

  • @vishalrai2859
    @vishalrai2859 4 ปีที่แล้ว

    you are genius sir i learnt today many things my institute should watch your videos that how to teach students swiftly..
    thanks a lot sir continue helping us...

  • @AnwerMehmood
    @AnwerMehmood 2 ปีที่แล้ว +2

    Coolest personality of Machine Learning Knowledge. Thanx sir. Stay Blessed Always. A lot of prayers for you.

  • @geek774
    @geek774 4 ปีที่แล้ว +1

    so well explained..the best tutorial in youtube for machine learning..made it so easy to understand

  • @preetham4974
    @preetham4974 4 ปีที่แล้ว

    The best tutorial all over the web.Using complex math words are not enough and not at all usefull.But explaining practically like you is what we who students want.You are my life saviour.I am trying to find how the coefficients are used to calculate predicted value since yesterday.I ended up here in this awsome tutorial.You got my subscribe and like.And will continue to get so.Thank you soo much

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Preetham thanks for the comment. And yes majority of people use fency terms which I hate from the bottom of my heart. My mission on this channel is to break down concepts in easy terms. Happy learning 😊👍

    • @preetham4974
      @preetham4974 4 ปีที่แล้ว

      @@codebasics I am glad that i found your channel.I am able to see the difference between the instructor i have in my course i am taking on udemy and you.He just started ML course with linear regression but due to major usage of fancy terms i am unable to understand.

    • @preetham4974
      @preetham4974 4 ปีที่แล้ว

      @@codebasics Looking forward to get to learn more from your amazing channel.Please try to make video on Evaluation metrics for regression and classification.Thank you

  • @anthonyschilling7132
    @anthonyschilling7132 5 ปีที่แล้ว +3

    Only 3 videos in and I've learned a ton. Thank you so much!

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Glad to hear that Anthony

  • @rahulpagar1881
    @rahulpagar1881 3 ปีที่แล้ว +2

    exp:2, test:9, interview:6
    Answer - 53205.96797671
    exp:12, test:10, interview:10
    Answer - 92002.18340611

  • @bernsbuenaobra473
    @bernsbuenaobra473 5 ปีที่แล้ว +5

    In an actual case in work, there are many columns variables more rows that could run into thousands of rows, close to a hundred columns in which the interaction is not obvious. Agreed the first step is data preparation, data cleansing all NaN, missing rows/column elements given such situation it would better to do a preliminary data exploration by data mining or designed experiment to see what interacts what for what. This is the only time you can actually write out the linear equation actually which are composed of independent variables that either reinforce the prediction (all positive polarity} or that contradict it (all negative polarity).

    • @HafsaRkh
      @HafsaRkh 5 ปีที่แล้ว

      I agree with you...
      In real life data is much more complicated. Specially when we have multiple dependent variables as well instead only one....In real life scenarios thousands of variables (both independent/dependent) interact each other. To create a model for such a scenario is really challenging and benefit of AI can only be realized then....

  • @doyoonkim4187
    @doyoonkim4187 2 ปีที่แล้ว

    Thank you SO much for providing this video for free!

  • @sauravshrestha1890
    @sauravshrestha1890 2 ปีที่แล้ว

    This is a great tutorial... I am starting my ML journey and your tutorial helped me learn in an easy way. Thank you

  • @briancantor6688
    @briancantor6688 3 ปีที่แล้ว

    awesome job man you taught me in 10 minutes how to do something my professor couldnt teach me over a couple of lectures

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @KamaleshPramanik-s3c
    @KamaleshPramanik-s3c 20 วันที่ผ่านมา +1

    Thank you very much Sir. Your videos gave an idea how to do use machine learning.

  • @regithabaiju
    @regithabaiju 4 ปีที่แล้ว +2

    Very helpful and appreciate your way of teaching

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad you liked it

  • @zeeshanqureshi6971
    @zeeshanqureshi6971 4 ปีที่แล้ว +3

    Question: Why is the coefficient for the bedroom variable a negative number? Shouldn't more bedrooms make the price higher?

  • @aayush135
    @aayush135 2 ปีที่แล้ว +2

    Great lectures.. You teach in one of the finest ways. I really appreciate your hard work and dedication towards these videos.

  • @vengalrao5772
    @vengalrao5772 3 ปีที่แล้ว

    Thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou ❤️❤️❤️❤️❤️❤️❤️❤️❤️ watched all videos at a time ....before I feel like don't I understand these topics ..but u made this topic easy 💫❤️

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Most welcome 😊 I am happy this was helpful to you.

  • @mwahmed9519
    @mwahmed9519 4 ปีที่แล้ว

    Your instructions are very clear and easy to follow. It makes learning more easier and stress free.. thanks for helping..

  • @ishanjoshi9529
    @ishanjoshi9529 3 ปีที่แล้ว

    Thank you for the explanation, I have just started with machine learning in Python and it was really helpful.🙏
    Just nitpicking being from math background, the value for the field NaN will be min 4, to make sense of the dataset. 😅

  • @vinnverse
    @vinnverse 7 หลายเดือนก่อน

    In the practice example, you have assigned the 'mean' value instead of the 'median' of the test_score values. That's why, there is a slight deviation in the predicted salaries when compared to the solution, 1) 53205.96 and 2) 92002.18

  • @spacebidi706
    @spacebidi706 2 ปีที่แล้ว +2

    Thank you for your efforts to explain us all these concepts in a soft way. I really appreciate

  • @DavidHernandez-cp4wu
    @DavidHernandez-cp4wu 6 ปีที่แล้ว +3

    Amazing videos!! Can't wait to watch upcoming ones on Machine Learning!

  • @jamesgray1210
    @jamesgray1210 3 ปีที่แล้ว +1

    Thanks a lot - really helped me out here. So many videos overcomplicate things, but this was perfect for what I needed!

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk 3 ปีที่แล้ว +1

    Thank you very much, sir. Really appreciated. Lots of love from Turkey.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @mechtorious
    @mechtorious 5 หลายเดือนก่อน +1

    If your notebook gives warning regarding "no variable for X" then you can train with this type of line. reg.fit(df[['area','bedrooms','age']].values,df.price.values)
    include the '.values' and it will be fine.

  • @abubakkar_kuchikar
    @abubakkar_kuchikar ปีที่แล้ว +1

    Solution:
    Ex 1: 53713.86677124
    Ex 2: 93747.79628651
    *Note:* For those, who are getting a slightly different answer. It's because, to replace *missing value* in *column 2* , we have used *mean* here instead of *median*

    • @tanvirahmed849
      @tanvirahmed849 11 หลายเดือนก่อน

      May I ask why mean is being used instead of median?

    • @abubakkar_kuchikar
      @abubakkar_kuchikar 11 หลายเดือนก่อน

      @@tanvirahmed849 It depends on the scenario, you will get a hang of it. Once you start practicing. 🙂

  • @SwapperTheFirst
    @SwapperTheFirst 6 ปีที่แล้ว +1

    another great video, thanks.
    I slightly disagree with example setting and how you solved it.
    I think that average would be better for test score, not median as in main tutorial with house pricing.
    But even assuming that median would be better, you don't have to floor the median in this example, as you did with bedrooms. Obviously, bedrooms cannot be 3.4 or 5.6, but median or average test scores, especially for building an accurate linear model - can and should be.
    Thus my answer is slightly different - 53205 and 92002.
    Though, it is more art than hard science (average vs median and whether to round the median or not) and your tutorial and example were great, as usual.
    PS Did not know about word2number - neat idea. Though they say it should not work with 3.6 i have not had any problems with it.

  • @ziyang9909
    @ziyang9909 ปีที่แล้ว

    Good job~ Thank you~ Big hug from China.

  • @xavierfrans
    @xavierfrans 3 ปีที่แล้ว +5

    I got the missing (NaN) bedroom value for 4. The median of bedroom i am getting is 4 (3, 3, 4, 5, 6). Thank you

    • @richardlonigro4178
      @richardlonigro4178 3 ปีที่แล้ว

      Hi Xavier. I had the same issue. I needed to set df.bedrooms = df.bedrooms.fillna(median_bedrooms). When I had the issue you're facing, my code was just df.bedrooms.fillna(median_bedrooms) so i think i was just displaying the correct data set but not actually updating my data set with the correct data. hope it helps.

    • @vikaskulshreshtha
      @vikaskulshreshtha 3 ปีที่แล้ว

      You can use interpolation method

  • @venkat157reddy
    @venkat157reddy 11 หลายเดือนก่อน

    very good contribution to the learners..Thank you so much..

  • @piyushjha8888
    @piyushjha8888 4 ปีที่แล้ว

    answer for exercise;reg.predict([[2,9,6]])=array([ 53713.86677124])
    reg.predict([[12,10,10]])
    =
    array([ 93747.79628651]).Thanks for exercise

    • @MrPrudhvisai
      @MrPrudhvisai 4 ปีที่แล้ว

      I got [53205.96797671, 92002.18340611]

  • @priyankachore1617
    @priyankachore1617 2 ปีที่แล้ว

    Hi sir your explaination style is tooo GOOD!!! here is a request to you that try to add more information into the topic please....

  • @arijitRC473
    @arijitRC473 5 ปีที่แล้ว +1

    You are really awesome.... Please make more videos..... I can easily understand your tutorial....

  • @Brenovisk7
    @Brenovisk7 4 ปีที่แล้ว +3

    How can I make an ANOVA table to better analysis the statistics of this linear regression?
    Great Video!

  • @hfe1833
    @hfe1833 5 ปีที่แล้ว +8

    Thank you for this helpful tutorial, I like the way your style,crystal cear and easy to follow.

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Dear,
      Thanks for your kind words.
      Stay in touch for more videos and share our channel if you really find it worth.

    • @shailypatel585
      @shailypatel585 4 ปีที่แล้ว

      @@codebasics why we use median ??? why not mean?? ca i use somthing else instead of median?

  • @piyushraj9561
    @piyushraj9561 5 ปีที่แล้ว

    Finally got the best machine learning tutorial please upload full machine learning series sir
    Thank u

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      good to hear you liked it Piyush.

  • @viduralochana235
    @viduralochana235 2 ปีที่แล้ว

    you helped me with my final project. huge thanks

  • @o1techacademy
    @o1techacademy 2 ปีที่แล้ว

    Thank you very much Sir. I am going to use this tutorial to handle a contract.

  • @abrarfahad
    @abrarfahad 3 ปีที่แล้ว

    Your explanation is clear and very easy to understand. I am amazed.
    And now I am your subscriber. :)

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @billwindsor4224
    @billwindsor4224 5 ปีที่แล้ว

    I corresponded with the @codebasics teacher regarding the results @9:30 for the:
    reg.predict([[3000, 3, 15]]) with 3 bedrooms, versus
    reg.predict([[3000, 4, 15]]) with 4 bedrooms.
    He responded that his updates to his GitHub repository code (URL above) currently generates the correct results:
    reg.predict([[3000, 3, 15]]) => 579201.199
    reg.predict([[3000, 4, 15]]) => 602590.079
    -- Many thanks!

  • @lakshyapratapsigh3518
    @lakshyapratapsigh3518 3 ปีที่แล้ว

    GREAT VIDEO SIR HELPING THOUSANDS

  • @prakashr7861
    @prakashr7861 ปีที่แล้ว

    Pls put a video for Data cleaning.. Thank you video, it is easy to understand the concept clearly :)

  • @rambaldotra2221
    @rambaldotra2221 3 ปีที่แล้ว

    Thank You Very Much Sir You are saving the lives of lot of students ✨

  • @BlindOptometrist
    @BlindOptometrist 2 ปีที่แล้ว +1

    It would be nice to show the R^2 and which independent variable is effecting the dependent variable the most. This would allow people to know which variable to focus on when buying a house. I’ve never used Panda but it’s a simple line of code in R.

  • @darklords1984
    @darklords1984 3 ปีที่แล้ว +7

    In the solution for the exercise (as given in github), you have taken the mean(for the test score). But the variable is named as "median_test_score". Is it how it is meant to be (I have pasted that part of the code)?
    median_test_score = math.floor(d['test_score(out of 10)'].mean())
    median_test_score

    • @michaelrall3916
      @michaelrall3916 3 ปีที่แล้ว

      just found it as well. I guess it is a mistake. He said "median" in the recording as well.

  • @pkrockon200
    @pkrockon200 4 ปีที่แล้ว

    Your all videos are fabulous....Keep it up & thanks for making such a amazing videos....

  • @andywang2388
    @andywang2388 5 ปีที่แล้ว

    instead of using external library, we can also use pandas replace method with dict as parameter
    word2number = {'zero':0,'one':1,'two':2,'three':3,'four':4,'five':5,'six':6,'seven':7,'eight':8,'nine':9,'ten':10,'eleven':11}
    d.replace({"experience": word2number},inplace=True)

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Yup that's true. But wordtonumbee can be handy if you have too many labels to map.

  • @vandanabellani7585
    @vandanabellani7585 5 ปีที่แล้ว +1

    excellent video...Please Keep making more videos!!

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Hey Vandana,
      Thanks for your kind words. Stay in touch for more videos and share our channel if you really find it worth.

  • @yourlifeonpower
    @yourlifeonpower 8 หลายเดือนก่อน

    Very helpful, very clear! Thank you so much!

  • @souravde2283
    @souravde2283 4 ปีที่แล้ว +1

    I very much like this tutorial. Thank you so much for providing this tutorial. :)

  • @kernelmedia4393
    @kernelmedia4393 3 ปีที่แล้ว

    Excellent approach
    U saved my time

  • @frankservant5754
    @frankservant5754 ปีที่แล้ว

    Thanks as always for teaching us Sensei

  • @Andrei-TheodorGinavar
    @Andrei-TheodorGinavar ปีที่แล้ว

    May Christ bless you brother, this has been incredibly helpful.

  • @srishtiuppal9373
    @srishtiuppal9373 4 ปีที่แล้ว

    Actually got the clarity of the topic. Thank you for this video.

  • @fulltoss9805
    @fulltoss9805 4 ปีที่แล้ว

    sir iam learning from your tutorial your really an amazing teacher.
    thank you very much sir

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      You are most welcome Jan Nisar

  • @rajsamant1
    @rajsamant1 5 ปีที่แล้ว +1

    sir, you have explained ML in such a easy way..thanks

  • @rameshthamizhselvan2458
    @rameshthamizhselvan2458 4 ปีที่แล้ว

    So far no one had posted data drift and concept drift request you to please explain with the dataset... Thanks . I'm following your channel since 2018.

  • @pandeadhistanaya9781
    @pandeadhistanaya9781 5 ปีที่แล้ว +3

    nice video, it helps a lot for beginner like me, thank you very much :D

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Great, this is indeed designed for beginners only.

  • @saifullahshahen
    @saifullahshahen 3 ปีที่แล้ว

    Helped me so much. You make my understanding about linear regression like liquid.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @yakoublarbi599
    @yakoublarbi599 10 หลายเดือนก่อน

    Thank you Sir for this excellent video

  • @eminatabeypeker6305
    @eminatabeypeker6305 3 ปีที่แล้ว

    Your understandable expression was very useful, thank you. By the way, I did not find it logical to fill the empty spaces in experience with median. I found the answers of exercise as follows; 47056 and 88227.
    Conversion to integer can also be done by using the map function for experience;
    df.experience = df.experience.map ({"two": 2,
    "three": 3,
    "five": 5,
    "loving": 7,
    "from": 10,
    "eleven": 11})

    • @historywithreese
      @historywithreese 3 ปีที่แล้ว +1

      from word2number import w2n
      df.experience = [w2n.word_to_num(x) for x in df.experience]
      It can be done in one line. It's useful because if there are 1000 rows, we can't do it by hand.

  • @fet1612
    @fet1612 5 ปีที่แล้ว +4

    7:44
    reg.coef_
    output => array([ 3 coefficients ])

  • @danijelbratina
    @danijelbratina 3 ปีที่แล้ว +1

    Hey, have you ever done mulvariate multiple regression with several dependent variables (statistics used MANOVA, MANCOVA)? Would like to see a video on that especially explanation of benefits over several ANOVAS.

  • @vasusachin8767
    @vasusachin8767 4 ปีที่แล้ว +3

    Heartfelt Thanks for this excellent video series sir.
    I have a small doubt. when should we use the following dot(.), [ ], [[ ]]. please clarify.

  • @poojadixit5608
    @poojadixit5608 4 ปีที่แล้ว

    Very informative video... thank you

  • @aniketbrahmankar8009
    @aniketbrahmankar8009 3 ปีที่แล้ว

    Seriously sir its really soooo helpful for me, thank you sir for your hard work for us

  • @argiepoul7457
    @argiepoul7457 ปีที่แล้ว +1

    Perfect video but we need more exercises in larger datasets, can you provide at least a link or two?Thanks

  • @shubhamjasani6365
    @shubhamjasani6365 3 ปีที่แล้ว

    Thank you so much !!!!!
    very easy to learn from your tutorial.

  • @jollycolours
    @jollycolours 2 ปีที่แล้ว +2

    Anyone knows the rationale behind filling zeros for the missing values in the "experience" column? How do we come to an assumption that these candidates have no experience? This newbie appreciates any feedback 😊
    Also, Mr Dhaval, I appreciate you taking time to make this tutorial for all of us! I watch all the ads as a way of saying thanks ☺️

  • @suparnashilchaity1694
    @suparnashilchaity1694 5 ปีที่แล้ว +1

    Really awesome 😍

  • @petelok9969
    @petelok9969 2 ปีที่แล้ว

    Really nice tutorial.

  • @ramkotha4726
    @ramkotha4726 4 ปีที่แล้ว +3

    Wonderful tutorial Teach! Would like to know 'how to plot scatter plot from multiple independent variables and one dependent variable', which I think is the only missing piece in the video. Thanks in advance

  • @rparpa8863
    @rparpa8863 4 ปีที่แล้ว

    excellent delivery.