Linear Regression in Python - Full Project for Beginners

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

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

  • @gideonenyindah5444
    @gideonenyindah5444 21 день назад +1

    For the first time in my entire 5yrs studying computer science, I understand and can explain linear regression and how it works. Thanks a Lot Sir.❤❤

    • @alejandro_ao
      @alejandro_ao  21 день назад

      you’re a legend, great job! keep it up 💪

  • @David-cx3fc
    @David-cx3fc Год назад +5

    I have watched endless Regression videos. I graduated with a math degree a couple years ago, and my programming skills are beginner level. I've done Datacamp stuff, youtube guided projects, you name it. This is by far the most concise, easy to follow, welcoming, calming video I have ever watched explaining how to do a regression project. I appreciate the quick definitions along the way, that help the audience including myself, not feel stupid lol. And explaining every small step really helps. Also the big picture explanation of how leverage this code and automate it, was helpful. Very few if any, ever talks about that step. I'm trying to get crack into the tech world and land a data job. Just this one video has truly given me the confidence, to not feel overwhelmed and that its obtainable. Sorry for the lengthy response haha Please keep making videos man, you rock!!

  • @muhdariz9264
    @muhdariz9264 Год назад +6

    You're really underrated dude, this video was very well made especially for beginners interested in the field. Thank you so much!

  • @twizerimanaanastase3447
    @twizerimanaanastase3447 15 дней назад

    I am from Rwanda. I would like to thank you very much for such explanation from this project

  • @nonnisite1954
    @nonnisite1954 4 месяца назад +1

    I'm a math major with a minor in CS. I'm looking to break into data science. Your video was very informative and easy to follow. Thank you!

    • @alejandro_ao
      @alejandro_ao  4 месяца назад +1

      you are literally in the best position to start off in the world of AI. enjoy the ride!

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

    Amazing! Please keep doing these beginner friendly projects, theyre incredibly useful

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

    Wonderful video! I was able to follow along happily until the scatterplot command, for which I got the error, "TypeError: scatterplot() takes from 0 to 1 positional arguments but 2 were given". Had to change the command to sns.scatterplot(x=predictions, y=y_test). Everything else was perfect, and I learned a lot - THANK YOU!!!

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

      i got at that point too, thanks for the fix :))

    • @itstanjorepainting
      @itstanjorepainting 4 месяца назад

      Yeah me too then I searched and fixed it

    • @rodrigoribeiro8700
      @rodrigoribeiro8700 3 месяца назад

      Thank you!

  • @aether7186
    @aether7186 3 месяца назад

    Absolutely amazing. I am in engineering undergrad and required exactly what this video offered. Everything is perfect, keep up the good work. Cheers🍹

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

    Great video! Here's a quick tip: consider using distplot to display Yhat and Y_test in the same axis to evaluate your model's performance.

  • @InsightIndiaraviverma
    @InsightIndiaraviverma 3 месяца назад +1

    Excellent video. Please keep doing such videos more and more. Just one thing was missing in the video, I guess. Finally, how to check the model with some random values. Here is the code:
    # Creating a DataFrame with random data
    random_data = pd.DataFrame({
    'Avg. Session Length': [33.8], # Example value
    'Time on App': [12.0], # Example value
    'Time on Website': [34.4], # Example value
    'Length of Membership': [5.4] # Example value
    })
    # Make predictions
    prediction = lm.predict(random_data)
    print(f"Predicted Yearly Amount Spent: ${prediction[0]:.2f}")

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

    Such an underrated video. It was a pleasure to watch and follow along

  • @ThomasRoshan-nl2py
    @ThomasRoshan-nl2py 7 месяцев назад

    Dude your explanation is far more better than anyone else and simple to understand i do not comment actually but i can say that u explain really good.

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

      i really appreciate it! glad it was helpful :)

  • @AmitKumar-ou3cg
    @AmitKumar-ou3cg 4 месяца назад +1

    This is really awesome, it helped me to understand linear regression concept , love the way you teach through projects.

  • @PietroCalafiore
    @PietroCalafiore 11 месяцев назад +1

    Thank you for this lesson, Alejandro: it helped me tremendously. Have a nice day and great holidays.

    • @alejandro_ao
      @alejandro_ao  10 месяцев назад +1

      thank you! i'm glad to hear it helped. i hope you had great holidays :)

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

    It is very helpful. Keep up with the great work!

  • @Izumichan-nw1zo
    @Izumichan-nw1zo 2 месяца назад

    Today is Sept-5 and here we celebrate teachers day in india so I really want to thank you for making such videos and explaining every minute thing and complex things in such a simplistic way thank u so much dude

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

      yo buddy,im also learning ml and just completed freecodecamp course but the sad thing is I learned theory mostly,not code so any suggestions?like how to start?i knew most of the things but in theory or you can say, i can understand code easily but couldnt write from scratch and for your knowledge, i havent watched this video yet...what should or where should I start now as I love ml,just having some trouble....

    • @Izumichan-nw1zo
      @Izumichan-nw1zo 2 месяца назад

      @@rameezalipacific I am also new but i would say start doing or replicating real world projects from youtube

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

    I've given you the 1000th thumbs up today, If I could I would have given you another 10000. You deserve more than that for your video really easy to follow and to undesrtand. I can wait to watch other videos of you.Thanks a lot👍

  • @davidcardenas9751
    @davidcardenas9751 4 месяца назад +1

    After watching a lot of videos for Linear Regression your video is by far THE BEST!!! thanks. Just one thing couldn't use scatterplot got a 'scatterplot() takes from 0 to 1 positional arguments but 2 were given' error.

    • @sakshamsharma708
      @sakshamsharma708 4 месяца назад

      yeah, I suggest you use the following instead :
      plt.scatter(predictions, y_test, alpha=0.5)
      it does the same thing, hope it helps

    • @abdulmughees9318
      @abdulmughees9318 4 месяца назад +1

      Put x= and y=. and it works

    • @a-54hrithickbarani89
      @a-54hrithickbarani89 Месяц назад

      @@sakshamsharma708 Thanks bro for the suggestion! it worked.

  • @TitoExpressionz
    @TitoExpressionz 4 месяца назад

    you explain so well. I have learnt so much in this video. Going to use this in my project for sure. Thank you

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      nice to hear that! keep it up!

  • @AamirMohamedThahirAli
    @AamirMohamedThahirAli 3 месяца назад +1

    Wonderful tutorial! Learning with my dad, and we both enjoyed it :)

  • @tsuna23-w5j
    @tsuna23-w5j 5 месяцев назад

    looking forward to another END TO END video but for more intermediate level!

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

    this is such a good beginner-friendly tutorial! thank u sm

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

      hey there! it makes me very happy to hear that! keep it up ;)

  • @shaneshshukla
    @shaneshshukla 4 месяца назад +1

    the video I wanted to find..amazing content..keep working great things will happen.

  • @itstanjorepainting
    @itstanjorepainting 4 месяца назад

    Thank you so much sir ❤ please keep us updated in ml world like this ............

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

    Very Helpful. Thanks

  • @ashleymolinadiaz3896
    @ashleymolinadiaz3896 3 месяца назад

    you saved me with this, great job and thank you!!

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

    Great vid, thanks my man!

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

    Amazing video ! for me as a beginner, that was very helpfull, thank you

  • @cantthinkofanythingwitty
    @cantthinkofanythingwitty 14 дней назад

    Awesome tutorial, very helpful! Can I just check though, aren't the dependent variables supposed to be on y and the independent on X?

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

    The coefficient does not determine the most important. The magnitude of each variable varies in the formula. A small coefficient applied to a variable with more magnitude can be the most variance on the model

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

    Amazing video i learned a lot from you thank you for the job

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

    It is very helpful brother, Keep up good work!

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

    please make video on lasso,ridge,svm,knn,gradient boost etc..

  • @tsuna23-w5j
    @tsuna23-w5j 5 месяцев назад

    big thanks for this video -- i learned a lot!!

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

    Thanks

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

    Great work ! Im waiting for others ML algorithms.

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

      thanks!! i’ll try to make more of this 💪

  • @shakilahammed1887
    @shakilahammed1887 4 месяца назад

    You are great brother.

  • @AmineKhaled-eo4cx
    @AmineKhaled-eo4cx 7 месяцев назад +1

    u are the best

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

    thank you its great

  • @celsogonzalezlopez6488
    @celsogonzalezlopez6488 4 месяца назад

    very helpful, thank you

  • @IkerSanchez-kn5kf
    @IkerSanchez-kn5kf 5 месяцев назад

    Hey. Nice video. There's just a thing I'm not sure about. Shouldn't normality, homoscedasticity and tests regarding residuals be done over y_train - predict, where predict is based on the training set? You verified the normality assumption on residuals of y_test - "predict_test". Which one is it?

  • @einsteinmow
    @einsteinmow 27 дней назад

    Thanks!

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

    Really thanks it is very helpful

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

      hey there, i'm glad it was helpful! keep it up :)

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

    37:25 i can't plot the scatterplot why shoing error (scvatterplot() takes from 0 to 1 positional argument but 2 were given )

  • @ZiyiZhang-b8j
    @ZiyiZhang-b8j 3 месяца назад

    Hii, at the end of the prediction part, a problem occurs saying ValueError: Per-column arrays must each be 1-dimensional. Can somebody help me pls.

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

    Can you tell me from where I can get this csv file ?

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

    How can l download dataset from kaggle

  • @navid7467
    @navid7467 3 месяца назад

    I'm following 36:40 in the video but when I try to execute sns.scatterplot(predictions, y_test) I get an error: Scatterplot() takes from 0 to 1 positional arguments but 2 were given.
    Any solutions? I am using seaborn version 0.12.2
    Could that be the issue?

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

      try this (sns.scatterplot(x=pridictions,y= y_test))