In the previous dataset, the features were strongly correlated with the labels. However, in some time series, we have features that might be less correlated or not correlated with the labels at all. The main idea behind machine learning is that the algorithm tries to figure out by itself which features are valuable and which are not. Especially in deep learning, we want to keep the feature engineering limited. In the following recipe, we will be predicting the demand for bike sharing rentals. The data includes some interesting features, such as weather type, holiday, temperature, and season.
Predicting bike sharing demand
How to do it...
- First, we import all libraries:
from sklearn import preprocessing
import pandas...