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
Thank you this is the first time I've had the courage to check out machine learning, you've made it a smooth ride.
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
Predicting weather:
He: ☝
Me:import random
23rd July 2020 in Sweden was High of 19 with a low of 17 at midday.... 18.26c was damn near perfect.
I looked up the exact same thing when I watched this video!
“Figuring out how to do the machine learning thing” - aren’t we all?😂
Mannen myten legenden Kalle är tillbaka med mera underbart content nej men asså seriöst din videos är så sjukt bra och inspirerande!
Professional at Mechine Learning.
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.
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.
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
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.
@@dalivanwyngarden3204 I did not. Realized it was too much for me
Yes, do more of it.
I will do my best ;)
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
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.
Great video kalle make some more videos like these
Thank you! I will try :)
7:45 that was called fitting process to find relationship between independent variable and target variable as linear regression did
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.
@@alwayssporty8102 typically I would ask stackoverflow for help. What error you encounter?
@@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
And again another great one :D :D :D awesome broooooooo keep it up!
Thank you, glad you think so :)
Nice video keep it up!
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!
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.
only 18 degrees in Sweden in July!!!! Come to Greece and enjoy the warm climate of southern Europe.
Nice one!
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?
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 :)
great video! machine learning is so cool 🔥🔥
This vídeo is awesome
Your comment is awesome
I was looking for apps GUI with python forma create a ml app
can you make a video about that
please add ReadMe in the Github Repos, your videos are awesome ,please add Documentations too.
Awesome Work
Thank you, and awesome comment ;)
Another great video. I'm curious as to its predictions for 20 years from now.... has it factored in global warming?
can you write an ML algorithm to count the number of times you say "basically" in this video?
Such an overkill. Jacascript window.gettranscript find(basically)
Hahaha well played.
@Kalle Hallden, please, why did you use DecisionTreeRegression model? Why not linear regression for example? :)
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
16:35 bro how did you know your system is accurate? What type measure you using to evaluate this?
Nice video, would also benefit more if u were to make a video on how a developer should weight train.
I have ruclips.net/video/sBTOfFYLakY/видео.html :)
Great explanatory video 🤩, which IDE do u use to run this M/L code ?
Seems to be pretty accurate for 7-31-19
Hi Kalle, do you use a docking station for your MacBook? I have been trying to find a good one for mine.
Nice video. How long have you been programming for?
About 2 years or so :)
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?
Nice video bro ! But im wondering, is it worth it to buy Macbook Pro for Machine Learning / Deep Learning?
You don't need a MacBook for machine learning :)
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!
Yeah I have actually tried that now and I feel like that works pretty good too, maybe even better :)
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)
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.
use braces like '' print (r2_score(y_test,pred))''
I am getting this same error. Did you work it out?
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.
my granny also predict the weather very well
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.?
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 ?
Nice sock on the mic ;)
can you please share a tutorial and/or the code for your Drone-obstacle avoidance system? :)
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.
Good morning I would like to know where you use python in flutter applications.
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.
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.
great
you're a gift from god thank you man
Haha yes
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?
I only predict temperature, I only used humidity as an example of something that could be used so I didn't use it :)
@@Hallden_ Ohh i see. Nice, thanks!
where did you complete ML Course
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
@@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
@@nakshatranahar check out the machine learning fundamentals by university of california san diego on coursera
@@nakshatranahar Machine Learning - Andrew Ng, Stanford University [FULL COURSE] is the BEST
@@nakshatranahar Deeplearning by Andrew Ng on Coursera!
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.
same here
but did it worked later??
can u give us all the sources from where u learned coding please I cant find proper courses for modules
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.
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.
why u not predict that day when u run the program in video and see if its close??
Which algorithm he used for the model??
I need one meteorological project idea kindly meteorologist , help out
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.
Yeah that's something that I am thinking about for sure. So maybe this autumn sometime ;)
@@Hallden_ looking forward for it! If you need help you can always discuss here
Interesting video Kalle! Would you mind to share the code with me?
Did you just use a sock for the mic??
what books do you recommend fort mastering basics of algorithms
Cracking the coding interview, I think that's probably the most bang for your buck :)
10:15 but the more feature and data point, the more time complexity
bro can u explain how do i run it on my pc
Is your code available Sir? I want to try it from scratch
Joblib is not working in Python version 3.7, what to do.
You can pip install joblib or change this line: "from sklearn.externals import joblib" for: "import joblib"
How can run it in my window... some error found
I had to watch this video twice..I listened to you the second time.. 😋😬
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.
Hello,can you make tutorial on making clone app.love from Nepal. I had subsided you 😘😘
Where to learn data structure and algorithms?
Thanks ! Whenever I type 1or 2 or 3. asks the same: Enter Option. Why?
you should cast it to int.. option=int(input("enter your option:"))
@@vigneshpai6996 on which line please tell me pls
Which is best for ML Mac or Windows?
Linux
Linux
i need the code.Can you share it??
what's the api link
i absolutely love the fact that the predicted temperature has 15 decimal places.
ну малайца
how to open pkl file
*whether
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
Vad har du läst?
Göteborgs universitet :)
I'm getting an error while running the program please help me out
Okay what's the error? :)
I have emailed you please check
@@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)
@@Hallden_ Please Help!
@@arbazkhan8320 put the error code in google, it is probably answered in stackeroverflow, and try 'pip install joblib'
Not working
This comment is not awesome
Видео ни о чём
Awesome work