Importing weather data from WorldWeatherOnline
The effectiveness of ML algorithms depends heavily on the data used for training. Thus, as we commonly say, the ML model is only as good as the dataset. The essential requirement for a good dataset is that the data must represent the problem we want to solve.
Therefore, we should consider factors such as temperature and humidity in our specific situation, as they directly impact snow formation.
In this recipe, we will show how to gather historical hourly temperature, humidity, and snowfall data to build a dataset for forecasting snow.
Getting ready
On the internet, there are various sources from which we can gather hourly weather data, but most of them are not free or have limited usage.
For this recipe, WorldWeatherOnline (https://www.worldweatheronline.com/developer/) has been our choice, which has a free trial period of 30 days and provides the following:
- A simple API through HTTP requests...