Hindi Machine Learning Tutorial 2 - Linear Regression Single Variable

Поділитися
Вставка
  • Опубліковано 16 вер 2019
  • In this tutorial we will predict home prices using linear regression. We use training data that has home areas in square feet and corresponding prices and train a linear regression model using sklearn linear regression class. Later on predict method is used on linearregression object to make actual forecast.
    #MachineLearningHindi #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource
    Code link: github.com/codebasics/py/blob...
    To download csv and code for all tutorials: go to github.com/codebasics/py, click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.
    Website: codebasicshub.com/
    Facebook: / codebasicshub
    Twitter: / codebasicshub

КОМЕНТАРІ • 184

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

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

    • @mandi.psingh7128
      @mandi.psingh7128 Рік тому +1

      Why you didn’t explain, how to make slope, please explain it. Thank you

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

      @@mandi.psingh7128 yeah there should be a video for it too

  • @rahul-java-dev
    @rahul-java-dev 2 роки тому +3

    Bahut bahut dhanywaad Sir Ji.........Maine expect nhi kiya tha ki Machine learning bhi itna araam se sikha ja skta hain.

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

    I am working in the analytics field and recommend everyone to watch your videos

  • @YashRaj-km8sq
    @YashRaj-km8sq Рік тому +1

    Yrrr hats off to you..... It felt like my elder brother teaching me just in front of me.

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

    This channel and Data professor are doing great job. Thank you so much 🥰💓

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

    best tutor ever seen, you save my life sir.

  • @Dangerislive6678
    @Dangerislive6678 Рік тому +1

    Great work ! sir i can't understand this from i month but when i watched this video i understood in 5 minutes very very thanks!

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

    now the concepts are going to be easy after this tutorial...Thanx

  • @rajkiranshrivastava6981
    @rajkiranshrivastava6981 9 місяців тому

    Guruji dhanyavad , Swadesh yaad dila di..👏👏

  • @VikashSingh-hq5ik
    @VikashSingh-hq5ik 2 роки тому

    i am learing python and meachine learning via your channel , your explain is amzing ,and follwinw your all video plz keep updating such video if possible plz upload in hindi ........#Thanks &love you...

  • @SuyogKumbhar-sk9kw
    @SuyogKumbhar-sk9kw Рік тому +1

    1 number .... mai kabse aeisa video dhundh raha tha ki muze regression with python samjme aaye.....aj oo din aa hi gaya.......muze aab samjme aaya ki how to do linear reg with python.....thank u so much

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

    Thank you sir. Beautiful explanation.

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

    No words left for appreciation :) amazing work keep it up. God bless you.

  • @kiddosknowledgewizbyakshit9954
    @kiddosknowledgewizbyakshit9954 2 місяці тому

    Really very helpful tutorial in a simplest and easiest way....thanks a lot.

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

    very well explained sir thanks a lot sir.

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

    You are Doing an exceptional job Mr.Dhaval, making complicated tasks this simple and also providing resources and exercises to practice , couldn't ask for more.

    • @ibrahimnadeem1064
      @ibrahimnadeem1064 10 місяців тому

      Muje bhi smjha do, prediction karne k baad hume kese pata lagega k model ne jo prediction ki he vh accurate he?

    • @suyash7450
      @suyash7450 10 місяців тому

      @@ibrahimnadeem1064 r2score mse jaise measures hain unse oata chalega model kitna accurate hai

    • @suyash7450
      @suyash7450 10 місяців тому

      @@ibrahimnadeem1064 train trst split method se check kar sakte hain

    • @ibrahimnadeem1064
      @ibrahimnadeem1064 10 місяців тому

      @@suyash7450 inhone tu nae bataya vh yar

    • @suyash7450
      @suyash7450 10 місяців тому

      @@ibrahimnadeem1064 bhai 15 20 min ke video me sab kaise batayega koi, poori playlist dekho inki, usne mse bhi bataya hai train test split b karaya hai

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

    Also in hindi that's great
    I've watched for English version whole

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

    Nice sir thank u so much, Love the way to explain

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

    Oen of the best video on Linear Regression

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

    Sir, only because of you i made my 1st model, i m so satisfied watching your videoes, thanks a lot 😊

    • @jyotsna132001
      @jyotsna132001 4 місяці тому

      Hi is the course sufficient to start working as data scientist?please help..i can't afford to much on course

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

    Very well explained sir thanks a lot sir. and bich bich me gujju wala tone aa raha tha.😂

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

    Hi Dhaval
    Explanation is truly truly appreciable....hits base knowledge to a beginner and hence make sure to have strong base knowledge.....i had been watching your amazing explanation in this tutorial , Thank you so much for the wonderful explanation in although

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

    thanks to start in hindi, you are awesome teacher...............I love your videos

  • @SachinSharma-hv3wm
    @SachinSharma-hv3wm 3 роки тому +1

    Hi sir...your way of explaining things is so so so simple...you are making complex things very easy by your way of explanation...thank u so much sir for these tutorials☺️☺️

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

    Superb! Best for beginners

  • @kirtishirwayya5883
    @kirtishirwayya5883 3 місяці тому

    This was awesome clear and concise

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

    can you make a video for binary classifire? i have seen many videos but i didn't get it what he says.but i understood fundamental things in your video. which is why i am asking you.

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

    Thank you so much for this video because every and each concept clear, Sir please make a video for how calculate Coef and intercept.

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

    sir really you are best teacher every time easy explian very nice god bless you 100 years

  • @SakshiSingh-tx7uy
    @SakshiSingh-tx7uy 11 місяців тому

    sir apki video ne bahoot help ki meri sir m non IT backgrond se hu aaur m bahoot diffulties face krii hu samaj nhi ata data science learn krne ke liye konsi streagy follow karu most of time give up ka mn hota h🥺😓

  • @samikshar455
    @samikshar455 3 місяці тому

    Excellent Teaching

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

    Sir you are doing an exceptional job. I have a question that why you have imported numpy because it isn't used in the code. i have tried the example of video and exercise without using numpy, it works fine. i just want to make sure was it a typographical error or it was used in the code but ignored by me. thanks in advance

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

    Greetings from Pakistan, Dear sir your videos are clear explanatory and easy to learn for beginners. Thanks

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

      Ahmed, I am glad you liked it. If you find this content useful then don't forget to give it a thumbs up, subscribe to this channel and also share it with your friends who can find it useful

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

    I love this channel, Thank You So Much Sir,

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

    waah..waah...waah..majja aa gya ...thanks sirji

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

      ha ha .. thanks. Aapki comment padhke mere ko bhi maja aa gaya... happy learning :)

  • @Gemreviewer
    @Gemreviewer 3 місяці тому

    When I tried to print the income of the year already present in the dataset , it is giving me different value. May I know why does it happens?

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

    Very useful ... thanks a ton

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

    Really interesting lecture, done the exercise successfully. Thank You Sir

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

    It is very knowledgeable. But if i am entering the value of area as given 2600 then this model is showing the result of price 533664.3835541643 against 5,50000 as given in the problem. Is there any method to reduce this deviation in machine learning. As i am just beginner. This is my query. I will be happy to get response from your side. Thanks

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

    Very nice video . Thanks sir

  • @tauhidanwar3512
    @tauhidanwar3512 4 роки тому +5

    i did the exercise and got the correct answer. Thanks for making such clear concept tutorials.

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

      i have one question sir. when i am using df.per capita income (US$), it is showing syntax error but when i am writing
      as df[per capita in come (US$) , the code is running while plotting scatter plot. why is it so sir?

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

      Tutorial is very significant. Easy to connect with fact. But didn't imply coding in reality. Every time face some error. Request to guide me!

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

    sir if i want to check how accuracy our model ?

  • @gauravarora896
    @gauravarora896 10 місяців тому

    Do I need to get 1st Basic knowledge about Python for ML OR can watch these series? Please suggest

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

    Excellent sir ji❤

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

    I am not able to get your homework csv file.

  • @jatindersingh-ne1ub
    @jatindersingh-ne1ub 2 роки тому

    kya u s a main a i and m l engnier ko 1.5 cr. ka pakage milta ? 6 month main ek ml aur ai seekh sakate hai? kahan se seekhe ?

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

    Sir jo value aapko mili hai 9.25 pe 5000 sq feet ghar ke lie -- Vo sahi hai ya galat vo kaise samjhega? Maina aapka assignment bhi kia answers match hue. But me maan kaise lu ki ye hi sahi output hai?

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

    Sir when I predict per capita income for year 1970 then model predicted -134.559667. but when predicted for 2020 it predict right value.
    Why in 1970 it predict wrong value

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

    તમારી વિડિઓ ખૂબ સારી છે

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

    Very well explained

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

    Iterative methods in Linear Algebra - Power iteration, Eigenvalues, SVD
    sir ish topics pr bhi videos bnaa dijiye with implementation

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

    Sir vo to ham income ka variance find karege to bhi pata chal jayega ki 2020 m income kya hogi ? To isme machine learning kyu use hota hai ???

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

    Can anyone tell me where I will get this CSV file ?

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

    Sir please continue this series
    I am here

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

    how to draw line of best fit using your tutorials??

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

    Really it Exellent Tutorial

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

    Thank you ❤️

  • @normie_._foodie
    @normie_._foodie 10 місяців тому

    why we took area in another variable? can anyone explain.

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

    How model knows what is dependent variable and independent, we did not define that in the code

  • @krishnamurari074cs-b8
    @krishnamurari074cs-b8 4 роки тому

    Ek nooo sir

  • @vicky-xf5nx
    @vicky-xf5nx 3 роки тому

    Hello sir,
    If I watch your tutorial from your website can I get certificate??

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

    perhaps , it is all because of old version from your side & i am using 3.8 version. because more codes are giving different result.

  • @GayatriPattar-je8qc
    @GayatriPattar-je8qc Місяць тому

    Sir line no.7 aapke jaisa mere mein same output nahi aa raha ...plzz tell

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

    I m trying to solve the exercise ques and getting error while running the code. whats the issue, i exactly followed the same steps as you have shown in the last example.
    import pandas as pd
    from sklearn import linear_model
    df=pd.read_csv(r"C:\Users\mail4\OneDrive\Desktop\Learnbay\ML\Linear Regression_1Var\canada_per_capita_income.csv")
    df
    new_df=df.drop('per capita income (US$)',axis=1)
    new_df
    reg=linear_model.LinearRegression
    reg.fit([[new_df]],[[df.income]])
    Error: TypeError: fit() missing 1 required positional argument: 'y'

  • @IrfanAli-nj3tq
    @IrfanAli-nj3tq 4 роки тому

    Very well explain tutorial and I also done excersise successfuly

    • @pawankumar-yt5lc
      @pawankumar-yt5lc 4 роки тому

      What did u do for df. Per capita income having spaces.. It give me error

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

    Per capita income for the year 2020 would be :-- 41288.70...
    Plz confirm if wrong....

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

    Awesome explaination sir..

  • @kabu567
    @kabu567 13 днів тому

    Unable to find the Github link

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

    Well done.

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

    sir installation kuch samajh nai aaya kya krna hai...kuch bhi...plz explain

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

    Good Job

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

    Sir how to download dataset for exercise

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

    Sir kindly upload the solution of exercise which u have given I am facing problem in solving it.

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

    Thanku so much sir

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

    how to draw plot aftar regression???

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

    Sir I was expecting ml tutorial in hindi and very well explained .

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

    Mujhe aaj pta lga Pravnta ke bare me

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

    Thanks sir..

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

    Thank you sir wow

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

    Thank you

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

    plz help how to download this excel files and all

  • @MukeshKumar-jd6ql
    @MukeshKumar-jd6ql 3 роки тому +1

    NIce, keep goint!

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

    successfully completed the exercise . thank you for the amazing tutorial .. really satisfying

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

      am not able to find the exercise when i try to import from there... can you pls help me if you or any others reading this comment

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

    model=linear_model.LinearRegression()
    model
    out put: LinearRegression()

  • @jyotsna132001
    @jyotsna132001 6 місяців тому

    Can you share link to panda videos

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

    osssm sir ossm

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

    Abhi tak ke sare tutorial mein se apka sabse systematic tha, samaj mein ache se aaya, thanks so much Sir, i am new born baby in programming, wants to learn machine learning, but i have so many questions, if possible can o get your contact number Sir, please

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

    import pandas as pd
    from sklearn import linear_model
    model = linear_model.LinearRegression()
    df = pd.read_csv("canada_per_capita_income.csv")
    new_df = df.drop('income',axis='columns')
    model.fit(new_df,df.income)
    model.predict([[2020]])

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

    BEAUTIFULL

  • @krishnamurari074cs-b8
    @krishnamurari074cs-b8 4 роки тому

    Sir blockchain pr v banaye video

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

    Sir, I am using ubuntu and I had installed anaconda. When I am lounching anaconda navigator that time I face an error, segmentation fault (core dumped). Please tell me solution of this.

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

      I would suggest your dont use anaconda. Uninstall that, install plain python and then install necessary modules (sklearn,numpy etc) using pip .

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

    Sir could you please tell only for machine learning what should be your laptop configuration?

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

      I work on , i3 processor , 1 TB ROM , 4 GB RAM , and it all works smoothly.

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

    Getting Error fit() missing 1 required positional argument: 'y'. How to resolve

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

      Model fit kar rahe ho to ek input aur ek output chayiye. Input x de diya aapne par y nai diya, isiliye ye error aaya hai

  • @tarunraghuvanshi4446
    @tarunraghuvanshi4446 6 місяців тому

    first erercise is not predict please help anyone

  • @AnujKumar-zn9ct
    @AnujKumar-zn9ct 3 роки тому +1

    I like your way of teaching.
    Namaste guruji 🙏🙏🙏🙏🙏🙏

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

    There is an error in my program. it says that there is no any type of csv excel file exist in my directory. Although I have already created a csv file in excel. So, what's the matter I don't know? please help sir.

    • @Krishna-zv1hx
      @Krishna-zv1hx Рік тому

      Provide the full path of your csv file to your model.

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

    Thx

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

    EXELLENT

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

    Sir nice

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

      Thanks Anuska. And sure I have added overfitting topic in my todo list. I will get to it in future.

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

    aapki vid mae aur detailing ki jrurt h