Predicting Weather with Python and Machine Learning

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • Machine Learning Python Weather Prediction
    07:02
    In this video I give machine learning with python a go. And I build a machine learning model for predicting the weather in the future.
    If you want to learn machine learning I do attempt to explain how machine learning works at 7:02 in the video. As kind of an intro to machine learning.
    Articles ranked from most useful to useful but less useful:
    1. nbviewer.jupyt...
    2. elitedatascien...
    3. machinelearnin...
    Github repo: github.com/Kal...
    "Clean Code Friday"
    If you want to receive one short email from me every week, where I go through a few of the most useful things I have explored and discovered this week. Things like; favourite apps, articles, podcasts, books, coding tips and tricks. Then feel free to join kalletech.com/...
    CONTACT: contact@kalletech.com
    Follow me on:
    TWITCH: / kallehallden
    INSTAGRAM: / kallehallden
    TWITTER: / kallehallden
    GITHUB: github.com/kal...
    --------------------------------------------------------------------------------------------------------
    GEAR:
    COMPUTER - amzn.to/2GX54SU
    CAMERA - amzn.to/2Nr09L
    MAIN LENS - amzn.to/2tzgJzp
    PERFECT DRONE - amzn.to/2NqkQa1
    Secondary Lens - amzn.to/2UcTA1e
    Secondary Lens - amzn.to/2Ebp5SV
    Zoom Lens - amzn.to/2U3UH3j
    MONITOR - amzn.to/2U6hF9Z

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

  • @chipekowasa6571
    @chipekowasa6571 4 года назад +5

    Thank you this is the first time I've had the courage to check out machine learning, you've made it a smooth ride.

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

    Whoa! I'm from the future as far as this video is concerned, and on July 23 2020 - the weather had a high of 19 degree and a low of 17 degrees as mid day. So this prediction was pretty damn accurate. Kickass yo

  • @luvleenkaur4641
    @luvleenkaur4641 4 года назад +11

    Predicting weather:
    He: ☝
    Me:import random

  • @DaPaKa
    @DaPaKa 4 года назад +13

    23rd July 2020 in Sweden was High of 19 with a low of 17 at midday.... 18.26c was damn near perfect.

    • @nathanbrunetti9852
      @nathanbrunetti9852 4 года назад +2

      I looked up the exact same thing when I watched this video!

  • @lucasalbano231
    @lucasalbano231 5 лет назад +20

    “Figuring out how to do the machine learning thing” - aren’t we all?😂

  • @sixtenorveland8211
    @sixtenorveland8211 5 лет назад

    Mannen myten legenden Kalle är tillbaka med mera underbart content nej men asså seriöst din videos är så sjukt bra och inspirerande!

  • @0xtanmoysamanta
    @0xtanmoysamanta Год назад

    Professional at Mechine Learning.

  • @prateeksadhwani5053
    @prateeksadhwani5053 5 лет назад +3

    ML is really cool man, I made a movie recommender through beautiful soup and tfidf but my dataset has data of only 5000 movies and also basic of maths is really useful. I would love to watch your other projects too.

  • @justin3594
    @justin3594 5 лет назад

    This is cool. You should get rid of the options. Just type in a date. If it’s in the past you return the historical data. If it’s in the future, you can return a forecast.

  • @felipedezotti5879
    @felipedezotti5879 4 года назад +1

    I'm a little late, but next year I am going to do the final project in my graduation I and was thinking of comparing the results of machine learning and old methods to determine rain probability. Your video helped me a lot to understand the concept and decide if it would be possible. I'm definitely going to research more

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

      Hey, did u try it and if yes how did it go? :) I have a small letter to write for a subject in University (environmental hydrology) and around 11 thousand rows of data with 6 variables (MM DD rain TA pet Qobs) I'm thinking of trying this method if it won't take too much time.

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

      @@dalivanwyngarden3204 I did not. Realized it was too much for me

  • @technicalilm8999
    @technicalilm8999 5 лет назад +2

    Yes, do more of it.

    • @Hallden_
      @Hallden_  5 лет назад +2

      I will do my best ;)

  • @daniellassahn7699
    @daniellassahn7699 4 года назад

    You are just doing climatological statistics. If I am calculating means and likelihoods i will receive the same forecast results as you mentioned in your machine learning model. But it would be a nice study to compare the statistical meaning of both techniques. And I guess the reason why you were not able to predict into the future is that the weather is highly non-linear. This is the reason why we builded up complex numerical weather prediction models solving non linear equations with numerical methods. So if you are using a weather forecast as a first guess/a priori you will be able to increase your forecast quality

  • @Lord-V15
    @Lord-V15 5 лет назад

    The best thing about Machine Learning is that you can do almost all of it with just the help of the internet.
    Medium is a website that I read regularly for new ideas and general A.I. content.

  • @arbazkhan8320
    @arbazkhan8320 5 лет назад +10

    Great video kalle make some more videos like these

    • @Hallden_
      @Hallden_  5 лет назад +2

      Thank you! I will try :)

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

    7:45 that was called fitting process to find relationship between independent variable and target variable as linear regression did

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

      bro its showing error in line no 80 i.e. print r2_score(y_test, pred) this line .pls help me u are the only latest comment i see.

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

      @@alwayssporty8102 typically I would ask stackoverflow for help. What error you encounter?

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

      @@adipurnomo5683 bro its done its predicting but i have one problem i want to do it for india how can i do it this one is of sweden. pls help me!! Its urgent

  • @chethiyairoshana5402
    @chethiyairoshana5402 5 лет назад +3

    And again another great one :D :D :D awesome broooooooo keep it up!

    • @Hallden_
      @Hallden_  5 лет назад +1

      Thank you, glad you think so :)

  • @pyshine_official
    @pyshine_official 4 года назад

    Nice video keep it up!

  • @fernandoarizmendi4964
    @fernandoarizmendi4964 5 лет назад

    Very nice indeed. Nevertheless, let me tell you that it has no sense at all to predict weather more than 10 days in advance. There is chaos in the weather dynamical system (the butterfly effect!). Another hint is that the seasonal cycle is usually removed from the data, so you work with anomalies. I want to implement seasonal forecast with ML. There one usually try to predict whether the temperature or precipitation, for example, is going to be below the usual, as usual or above the usual. Keep it up!

  • @codewithsid2063
    @codewithsid2063 5 лет назад

    Nice video. To know if your model actually works you can plot your input time series data. And also whatever you are predicting for a complete month or year. This will give you more insights on what the data is. And on time series data decision tree regression might not work because I believe you made the entire date as a number. Check on time series data modelling like ARIMA, RNNs etc.

  • @Feta_Cheezz_Montgomery_Burns
    @Feta_Cheezz_Montgomery_Burns 4 года назад +1

    only 18 degrees in Sweden in July!!!! Come to Greece and enjoy the warm climate of southern Europe.

  • @praiz_sunday
    @praiz_sunday 5 лет назад

    Nice one!

  • @RVAraghav
    @RVAraghav 5 лет назад +3

    Lovely video. Am able to understand something although I knew very little about python or ML. Where did you learn ML and how long did it take you to do this?

    • @Hallden_
      @Hallden_  5 лет назад +3

      Thank you that's really cool to hear! :)
      I learned from many different sources, and I still have not quite learned it. I just know some of the concepts and that is mostly based off of knowing how Linnear regression works which gives a good base and I learned Linnear regression from school :)

  • @4n3c3d
    @4n3c3d 5 лет назад

    great video! machine learning is so cool 🔥🔥

  • @freeze_the_seconds1059
    @freeze_the_seconds1059 5 лет назад +3

    This vídeo is awesome

    • @Hallden_
      @Hallden_  5 лет назад +1

      Your comment is awesome

    • @freeze_the_seconds1059
      @freeze_the_seconds1059 5 лет назад

      I was looking for apps GUI with python forma create a ml app
      can you make a video about that

  • @singavi2769
    @singavi2769 5 лет назад

    please add ReadMe in the Github Repos, your videos are awesome ,please add Documentations too.

  • @bleepbop7689
    @bleepbop7689 5 лет назад

    Awesome Work

    • @Hallden_
      @Hallden_  5 лет назад

      Thank you, and awesome comment ;)

  • @samurai-capybara
    @samurai-capybara 4 года назад

    Another great video. I'm curious as to its predictions for 20 years from now.... has it factored in global warming?

  • @dhuvsgg7553
    @dhuvsgg7553 5 лет назад +23

    can you write an ML algorithm to count the number of times you say "basically" in this video?

    • @jlee3361
      @jlee3361 5 лет назад +8

      Such an overkill. Jacascript window.gettranscript find(basically)

    • @Hallden_
      @Hallden_  5 лет назад +7

      Hahaha well played.

  • @TimcoVanco
    @TimcoVanco 5 лет назад

    @Kalle Hallden, please, why did you use DecisionTreeRegression model? Why not linear regression for example? :)

  • @aimsosori3084
    @aimsosori3084 4 года назад +1

    hi. what a cool video. i'm about to work on my thesis, since i'm on my 3rd year as a college student, majoring in instrumentation engineering. Do you have any recommendation ideas about machine learning that related to weather. I'm so confused what kind of system should i make

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

    16:35 bro how did you know your system is accurate? What type measure you using to evaluate this?

  • @golden9oose759
    @golden9oose759 5 лет назад

    Nice video, would also benefit more if u were to make a video on how a developer should weight train.

    • @Hallden_
      @Hallden_  5 лет назад

      I have ruclips.net/video/sBTOfFYLakY/видео.html :)

  • @venkzvenki
    @venkzvenki 5 лет назад

    Great explanatory video 🤩, which IDE do u use to run this M/L code ?

  • @AminA-2051
    @AminA-2051 5 лет назад

    Seems to be pretty accurate for 7-31-19

  • @xNYxLilJohnny
    @xNYxLilJohnny 5 лет назад +1

    Hi Kalle, do you use a docking station for your MacBook? I have been trying to find a good one for mine.

  • @wolvAUS
    @wolvAUS 5 лет назад

    Nice video. How long have you been programming for?

    • @Hallden_
      @Hallden_  5 лет назад

      About 2 years or so :)

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

    When you were explaining the weather types to be a dictionary, what if the weather types were instead things like temperature, wind speed, dew point temperature and their values are important, what would I do then?

  • @kevinkamaluddin2337
    @kevinkamaluddin2337 5 лет назад

    Nice video bro ! But im wondering, is it worth it to buy Macbook Pro for Machine Learning / Deep Learning?

    • @Hallden_
      @Hallden_  5 лет назад

      You don't need a MacBook for machine learning :)

  • @SG2024-z7k
    @SG2024-z7k 5 лет назад +1

    What if your dataset would not use year only month and day? Wouldn't be better ? Then it would consider each time same day temperatures or somehting. Just asking... :) Good video btw. Thanks and greets from Slovakia!

    • @Hallden_
      @Hallden_  5 лет назад +1

      Yeah I have actually tried that now and I feel like that works pretty good too, maybe even better :)

  • @aidenstill7179
    @aidenstill7179 5 лет назад

    Wow! Thanks. What do i need to know to write your deep learning framework (for computer vision )? Can you recommend resources for training? (paid and free)

  • @patrickjane276
    @patrickjane276 5 лет назад

    Hey Kalle, just saw this video - seems super cool but I can't get it to work - somethings wrong with the ```print r2_score(y_test, pred)``` line 80 in main.py. not entirely sure what.. syntax seems fine. Anyways - love these videos - please keep making more! Especially the Autotimer program! that was awesome.

  • @arnabeshsamadder304
    @arnabeshsamadder304 5 лет назад

    Pardon me if I'm missing something, I don't share a background of data science, but while making such a calculation, how shall you justify having the date as say '20190201' . I think it will be better if we take '2019032' , i.e. number of days into account. Thanks.

  • @MilanDrazic
    @MilanDrazic 5 лет назад

    my granny also predict the weather very well

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

    Good video. I tried executing the code
    but the program goes into an infinite loop at "Enter option: " line . All combination of numbers from 0 to 9 is putting the program in infinite loop. Can you please help me.?

  • @zemzemitarek
    @zemzemitarek 4 года назад

    Hi Kall Halden nice job . I just want to ask you how can i use the prediction results into a web application ? for example with react js app ?

  • @wojciechzajaczkowski9783
    @wojciechzajaczkowski9783 4 года назад +2

    Nice sock on the mic ;)

  • @ideyaa3640
    @ideyaa3640 4 года назад

    can you please share a tutorial and/or the code for your Drone-obstacle avoidance system? :)

    • @johntamplin
      @johntamplin 4 года назад

      It's built into the Drone itself by the manufacturer. It's not something you (as a user) add into the Drone. This one looks like a DJI Mavic (or a look-alike). Google those.

  • @p-tropa9936
    @p-tropa9936 5 лет назад +1

    Good morning I would like to know where you use python in flutter applications.

  • @adyaung652
    @adyaung652 5 лет назад +2

    Anyone who is out there,
    Would you mind pls answer my some questions?
    I’m 23 years Old and studying bachelor of information Technology.
    I’m in final year now.
    I know some of the things about programming languages like java and python. Also, know other media languages like HTML and css(not even learning JavaScript yet).
    I don’t feel like I’m good at it at all.
    But I wanna Learn and I want to be good at it. I don’t wanna give up.
    Also, I have none experiences relating to my IT careers. All I am doing is working as bartender as part time. I hate it.
    I wanna have some experiences and still looking for internships.
    My point is
    How long it’s gonna take for me to master it?
    What should I do to improve my coding skills?
    How can I find internships even though I lack some skills and I don’t have experiences?
    I feel like I’m lost.
    I’m sorry for asking such stupid questions.
    Thank u guys.

    • @MrRobot-mb6rq
      @MrRobot-mb6rq 5 лет назад

      You can use internet resources like RUclipss, online courses like udemy, coursera, online coding platforms like hackerrank,hackerearth to improve your coding skills and you can use online platforms like freelancer , internshala, Linkedin to seek internships and jobs for IT.

  • @nakshatranahar
    @nakshatranahar 5 лет назад

    great

  • @Foffa
    @Foffa 5 лет назад

    you're a gift from god thank you man

  • @AndreLuiz-ju3yv
    @AndreLuiz-ju3yv 5 лет назад

    Great video! But i didn't understand how can you predict the others variables too. For example, how did it predict the humidity for the day 2020-07-23 and then predicted the temperature?

    • @Hallden_
      @Hallden_  5 лет назад +1

      I only predict temperature, I only used humidity as an example of something that could be used so I didn't use it :)

    • @AndreLuiz-ju3yv
      @AndreLuiz-ju3yv 5 лет назад

      @@Hallden_ Ohh i see. Nice, thanks!

  • @nakshatranahar
    @nakshatranahar 5 лет назад +11

    where did you complete ML Course

    • @Hallden_
      @Hallden_  5 лет назад +10

      I haven't done any ML courses :)
      Learned about Linnear regression through school and that's basically the base I use to understand the concept

    • @nakshatranahar
      @nakshatranahar 5 лет назад

      @@Hallden_ Can You Suggest Me ML and AI Course, By The Way, I Am Currently Studying In Class 10 And Very Passionate To Learn AI Or ML

    • @dmitry10x74
      @dmitry10x74 5 лет назад +1

      @@nakshatranahar check out the machine learning fundamentals by university of california san diego on coursera

    • @zzaakk1984
      @zzaakk1984 5 лет назад +4

      @@nakshatranahar Machine Learning - Andrew Ng, Stanford University [FULL COURSE] is the BEST

    • @taylormcclenny1416
      @taylormcclenny1416 5 лет назад +1

      @@nakshatranahar Deeplearning by Andrew Ng on Coursera!

  • @charityadjei5424
    @charityadjei5424 4 года назад

    Hi. That's really a great video. I got your files from GitHub to run a test on my pc but it failed to work. Can you help me out understand where I am getting it wrong. Thank you.

  • @Abhishek-bu1eu
    @Abhishek-bu1eu 5 лет назад +7

    can u give us all the sources from where u learned coding please I cant find proper courses for modules

    • @michaela5586
      @michaela5586 5 лет назад

      I have learned from Udemy courses (These are not that good), people on RUclips such as Sentdex (there are lots of other channels too), also from reading the docs from the framework, etc, that I want to learn. Also, Discord servers and Stackover flow is a good place to ask.

    • @borgirvspitsah7329
      @borgirvspitsah7329 5 лет назад

      Check out DeepLizard on youtube. I've been studying ml for a month now and I recently found the channel DeepLizard. They have a ml fundamentals playlist and also many other coding playlists where they show hoe to build a network from scratch using different apis such as keras, pytorch.

  • @ra6160
    @ra6160 5 лет назад

    why u not predict that day when u run the program in video and see if its close??

  • @mayankpant5376
    @mayankpant5376 4 года назад

    Which algorithm he used for the model??

  • @neymarlagat7675
    @neymarlagat7675 4 года назад

    I need one meteorological project idea kindly meteorologist , help out

  • @itsnotme6182
    @itsnotme6182 5 лет назад

    i have been trying to make one for Forex trading ! you should try doing it, it trul is hard but it will be fun then i can learn from you as usual! thank you for your time.

    • @Hallden_
      @Hallden_  5 лет назад +1

      Yeah that's something that I am thinking about for sure. So maybe this autumn sometime ;)

    • @itsnotme6182
      @itsnotme6182 5 лет назад

      @@Hallden_ looking forward for it! If you need help you can always discuss here

  • @shirleyumang4185
    @shirleyumang4185 5 лет назад

    Interesting video Kalle! Would you mind to share the code with me?

  • @ignacio6290
    @ignacio6290 4 года назад

    Did you just use a sock for the mic??

  • @zarchie
    @zarchie 5 лет назад +7

    what books do you recommend fort mastering basics of algorithms

    • @Hallden_
      @Hallden_  5 лет назад +3

      Cracking the coding interview, I think that's probably the most bang for your buck :)

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

    10:15 but the more feature and data point, the more time complexity

  • @harshitpant07
    @harshitpant07 4 года назад

    bro can u explain how do i run it on my pc

  • @dhananjaykansal8097
    @dhananjaykansal8097 5 лет назад

    Is your code available Sir? I want to try it from scratch

  • @channpreetsingh1042
    @channpreetsingh1042 4 года назад

    Joblib is not working in Python version 3.7, what to do.

    • @NicoAlonso80
      @NicoAlonso80 4 года назад

      You can pip install joblib or change this line: "from sklearn.externals import joblib" for: "import joblib"

  • @KalerPathik
    @KalerPathik 4 года назад

    How can run it in my window... some error found

  • @nehag542
    @nehag542 5 лет назад

    I had to watch this video twice..I listened to you the second time.. 😋😬

  • @johntamplin
    @johntamplin 4 года назад

    Hmmm. In general I enjoy your videos and think they're helpful, but I don't know what is the point of the 1st 7 mins. You even suggest skipping over that part, so why publish it? Perhaps I missed something important.

  • @Yeoffical
    @Yeoffical 5 лет назад

    Hello,can you make tutorial on making clone app.love from Nepal. I had subsided you 😘😘

  • @Triple109
    @Triple109 5 лет назад

    Where to learn data structure and algorithms?

  • @mainanant
    @mainanant 4 года назад

    Thanks ! Whenever I type 1or 2 or 3. asks the same: Enter Option. Why?

    • @vigneshpai6996
      @vigneshpai6996 4 года назад

      you should cast it to int.. option=int(input("enter your option:"))

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

      @@vigneshpai6996 on which line please tell me pls

  • @hardikmanek8106
    @hardikmanek8106 5 лет назад

    Which is best for ML Mac or Windows?

  • @hazel2267
    @hazel2267 5 лет назад

    i need the code.Can you share it??

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

    what's the api link

  • @TheLuRage
    @TheLuRage 4 года назад

    i absolutely love the fact that the predicted temperature has 15 decimal places.

  • @evgenymasalsky2122
    @evgenymasalsky2122 5 лет назад +1

    ну малайца

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

    how to open pkl file

  • @harishravisankar8151
    @harishravisankar8151 4 года назад

    *whether

  • @busterdafydd3096
    @busterdafydd3096 4 года назад

    look high quality video just the content is rubbish, nice text editor but still get to know your language and library properly, then start making these projects, but with more of this is what I made and this is how I made it

  • @victorgunnasson4613
    @victorgunnasson4613 5 лет назад

    Vad har du läst?

    • @Hallden_
      @Hallden_  5 лет назад

      Göteborgs universitet :)

  • @arbazkhan8320
    @arbazkhan8320 5 лет назад +1

    I'm getting an error while running the program please help me out

    • @Hallden_
      @Hallden_  5 лет назад +1

      Okay what's the error? :)

    • @arbazkhan8320
      @arbazkhan8320 5 лет назад +1

      I have emailed you please check

    • @arbazkhan8320
      @arbazkhan8320 5 лет назад +1

      @@Hallden_ C:\Users\HACKER47\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\externals\joblib\__init__.py:15: DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
      warnings.warn(msg, category=DeprecationWarning)

    • @arbazkhan8320
      @arbazkhan8320 5 лет назад

      @@Hallden_ Please Help!

    • @itsnotme6182
      @itsnotme6182 5 лет назад +1

      @@arbazkhan8320 put the error code in google, it is probably answered in stackeroverflow, and try 'pip install joblib'

  • @reshmashankar7793
    @reshmashankar7793 4 года назад

    Not working

  • @makeki7756
    @makeki7756 4 года назад

    This comment is not awesome

  • @tihon4979
    @tihon4979 5 лет назад

    Видео ни о чём

  • @michaelmichael3499
    @michaelmichael3499 5 лет назад

    Awesome work