February 2018
Intermediate to advanced
450 pages
11h 27m
English
Interaction features are obtained by performing mathematical operations on sets of features and indicate the effect of the relationship between variables. We use basic mathematical operations on the numerical features and see the effects of the relationship between variables:
# Constructing features manually based on the interaction between the individual featuresnumeric_features = df_titanic_data.loc[:, ['Age_scaled', 'Fare_scaled', 'Pclass_scaled', 'Parch_scaled', 'SibSp_scaled', 'Names_scaled', 'CabinNumber_scaled', 'Age_bin_id_scaled', 'Fare_bin_id_scaled']]print("\nUsing only numeric features for automated feature generation:\n", numeric_features.head(10))new_fields_count = 0for i in range(0, numeric_features.columns.size ...
Read now
Unlock full access