Hindi Machine Learning Tutorial 3 - Linear Regression Multiple Variables

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

КОМЕНТАРІ • 105

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

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

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

    Sir, because of your videos only I am able to learn the basics and concepts of ML models

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

    Hi Dhaval;
    Your video is very helpful to students who are the study of data science in rural India ;
    Kindly upload videos on Intermediate Stats and advanced

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

    Your videos are really helpful in understanding complex concepts in a simple manner and your exercises are helping me very much

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

    I was having a difficult time understanding these algorithms before. But you have made it very clear. Really nice and easy explanation. Thank you

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

    Anyone want to learn machine learning implementation should watch this series, great explanation 🔥🔥

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

    Very helpful knowledgeable and easiest way of explaining this things

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

    awesome explanation you clear each and every steps why we use this method n all..thanks alot.....the way you explain that is superb....i think no one can explain like the way you explain....

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

    UA-cam team has to make a heart ❤️ reaction so that I will give you on your every video😄😂

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

    Best ML tutorial I found on UA-cam

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

    Hi Sir,
    Thank you so much for this video very helpful for beginners and initial stage.

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

    sir, your way of explanation is great. thankyou sir

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

    Thank You brother for all your help. As i Said so many times earlier and will say again that the way you teach makes perfect sense. Regards

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

    Really, Sir, you have great teaching skills...
    really appreciated

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

    I must say your videos is so well defined , sir I am big thankful to your video and your voice love ❤️

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

    Sir ... ap nay to dill jeet liya mera ...
    Lub u Sir ... :)
    Stay blessed ...

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

    Sir you are great.. after waching this linear regression video my all doubts are clear.. thanks sir.. keep teaching us

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

    how can i convert string ('Experience Columns') into float values ??

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

    sir, why you used different approach for ------ import math
    median_test_score = math.floor(d['test_score(out of 10)'].mean()).
    instead why we cant use d.test_score(our of 10) as previously ... Please help..

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

    If we take 0 bedroom, 0 sqft and 0 age as input, still it will give 221323 as output. Or if we take 0 bedroom, 0 SQFT and 1 years as age, it will give negative answer. Is this because, the example is hypotheical and does not cover corner cases?

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

    Thank you and Finished::::::
    import pandas as pd
    import numpy as nm
    from sklearn import linear_model
    import math
    from word2number import w2n
    df = pd.read_csv("hiring.csv")
    df['test_score(out of 10)'] = df['test_score(out of 10)'].fillna(df['test_score(out of 10)'].mean())
    df.experience= df.experience.fillna('Zero')
    # Converting Float(Actually series) into Int
    df['test_score(out of 10)']=df['test_score(out of 10)'].astype(int)
    df.experience = df.experience.apply(w2n.word_to_num)
    model = linear_model.LinearRegression()
    model.fit(df.drop('salary($)',axis='columns'),df['salary($)'])
    print(model.predict([[12,10,10]]))
    Answer exactly like you... Learned Word2 num and how to convert series into float/Int

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

      why you take out the mean for test_score for Nan value while in a tutorial the sir takeout median for Nan value ??

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

      why u converted float to int?

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

    Sir, first of all, many warm wishes for you. You have taught in subsequent videos how to handle textual data (convert text to numbers), here exercise data set contains a text column, i-e. experience. We can convert that textual data to number. Would you please suggest here at tutorial 3 how to handle such text data.

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

    abi dear sir muje lagta hai mai data scientist banwo ga thanks for a such a nice content thanks

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

    I am using google colab and the word to number library is not working there so I used the function to convert string data into numeric in the experience column. Overall enjoyed the exercise.

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

    Please explain the use case when you need to develop a model which has categorical variables and how you handled it.

  • @krishnakaushik4294
    @krishnakaushik4294 Місяць тому

    Thank you so much sir.

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

    great explanation

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

    Good explaination and understanding of ml thanks you sir

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

    Hi Sir,
    which condition we apply median or mean numbers.

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

    Good explanation sir

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

    Could you please provide a dataset of engineering problem statement like to predict the pressure temperature or selection of sensors

  • @Yd-Studio
    @Yd-Studio 3 місяці тому

    in assesment file how can i change string value to floatvalue with machine learning

  • @Abhishekkumar-jr7qt
    @Abhishekkumar-jr7qt 4 роки тому

    sir, i am facing this problem[TypeError: float() argument must be a string or a number, not 'method'] when you removing NAN from table 5:53

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

    Thank you

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

    lajab bemisal excellent awesom

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

    Awesome .. good job

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

    Really great videos 👌❣️👌

  • @AnujKumar-zn9ct
    @AnujKumar-zn9ct 4 роки тому

    Sir, if my area is zero then model why predicting a value

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

    sir your way of learning is very good
    i have doubt in above problem when i predict the value of [[3000,4,15]] i'm get the result of 602590.079 why because
    the answer in table is 565000

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

      check your instruction where you have used fillna( )... because i mistakenly filled all fields with median and the answer got different then mentioned in video

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

    salary prediction for 2yrs experience + 9 test score + 6 interview score is : 47056.00 salary

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

    Exercise :- 2year experience, 9 test score, 6 interview
    My Output is :- 49789. 5915 (but it is not match your answer 😕

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

      how you convert expiriance column into float??

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

    HI Dhaval, We are trying to solve exercise for multivariable linear regression , have one doubt here
    import math
    median_test_score = math.floor(df['test_score(out of 10)'].mean())
    median_test_score
    Could you please let me know why we took here mean , as in previos exercise we took median for finding NaN value..

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

    In exercise questions, it is coming 47056.91 and 88227.64 respectively.

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

      Yes! I got the same result. [47056.91056911], [88227.64227642]. Can anyone please affirm the actual answer?

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

      @Subhadip : I guess we both used the median instead of mean . As, I replaced median from mean I got the actual result. [53713.86677124] & [93747.79628651].

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

      In exercise, did you implement word2num module for experience, or wrote the code , please help. Thanks

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

      what we need to take in place of NA? mean or median?

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

      @@DurgeshMishrablog same result same as u

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

    Thank you!!

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

    Thank you, Sir !

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

    sir please provide whole cousre in website in hindi language

  • @Strife-TheDanceHub2309
    @Strife-TheDanceHub2309 5 років тому +2

    sir excercise me experience words me he use numeric me change karna nhi aa rha,

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

      Neetu Try Loading word2number package.

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

      @@taranoberoi ye kya bola vhai tm n?????

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

      @@farhazyounis5171 I did not get u bhai.. i just said try loading package which will help converting word to numbers...

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

      @@taranoberoi yes done bro

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

      @@taranoberoi is this available with jupyter?

  • @ManishSharma-wy2py
    @ManishSharma-wy2py 4 роки тому

    Sir, i am converting the word to num but getting error
    code is
    df['experience']=df['experience'].apply(lambda x: x.w2n.word_to_num())
    please suggest me where i am wrong

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

      import w2n
      df.experience = df.experience.apply(w2n.word_to_num)
      I found this works after a few trials and errors. Also, did u put the w2n.oy file in that project folder. What error were u getting?

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

      @@hemalkarambelkar9638 can u give me yr code link? or you can past here yr code
      I got error during w2n error: value error type of input is not string please enter a valid number word

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

    Why find median not mean ?

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

    take big data sir and buil linear regression ..

  • @rohitbartwal-ul9dh
    @rohitbartwal-ul9dh Рік тому

    csv file is not downloaded please help me

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

    Supper sir

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

    How we sure our prediction is correct

  • @DharmendraKumar-pf4fs
    @DharmendraKumar-pf4fs 4 роки тому

    Line 6 is giving error ...plz tell me

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

    Sir the coefficient is calculated how?

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

    Awesome

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

    sir ji plz help ...results are not matched

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

      use mean instead of median to fill NAN values in test_score(out of 10)

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

    sir how to write these codes

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

    Please download the library module word 2 numbers from the link below for the program to execute.
    pypi.org/project/word2number/

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

    Mere kuch smjh nhi a rha how do work ..????

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

    Sir my answer is 53746.90 and 96343.08 and test score is 0.72

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

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

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

      i got 53537.10 and 75641.91487169 respectively. can you share your code

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

    excercise answer 53713.86677124 and93747.79628651

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

    My answers are different as your
    2 yr experience, 9 test scores, 6 interview scores: 53537.10
    12 yr experience, 10 test score, 10 interview score: 75641.91
    Your answers are: 53713.86 and 93747.79

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

    time wast

  • @awanishkatiyar-dj9ku
    @awanishkatiyar-dj9ku Рік тому

    import pandas as pd
    import numpy as np
    from sklearn import linear_model
    from word2number import w2n
    xlsx = pd.ExcelFile('hiring.xlsx')
    df1 = pd.read_excel(xlsx, 'Sheet1')
    df2 = pd.read_excel(xlsx, 'Sheet2')
    df2
    df2.experience = df2.experience.fillna('zero')
    df2
    df2.experience = df2.experience.apply(w2n.word_to_num)
    df2
    import math
    mid_score = math.floor(df2['test_score(out of 10)'].mean())
    mid_score
    df2['test_score(out of 10)'] = df2['test_score(out of 10)'].fillna(mid_score)
    df2
    model = linear_model.LinearRegression()
    model.fit(df2.drop('salary($)', axis='columns'),df2['salary($)'])
    model.predict([[2,9,6]])
    array([53713.86677124])
    model.predict([[12,10,10]])
    array([93747.79628651])

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

    51369.90760877 & 81881.42026808.. not matched ..sorry

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

    Thank you so much sir