As briefly discussed in the previous chapter, Chapter 2, Predicting Diabetes with Multilayer Perceptrons feature engineering is the process of using one's domain knowledge of the problem to create new features for the machine learning algorithm. In this section, we shall create features based on the date and time of pickup, and location-related features.
Feature engineering
Temporal features
As we've seen earlier in the section on data visualization, ridership volume depends heavily on the day of the week, as well as the time of day.
Let's look at the format of the pickup_datetime column by running the following code:
print(df.head()['pickup_datetime'])
We get the following output:
Recall that neural...