From 7ed85160091025ece2d4cfa61c766ba9c4ea7d75 Mon Sep 17 00:00:00 2001 From: arevelle-ensae Date: Thu, 28 Mar 2024 13:17:45 +0000 Subject: [PATCH] fix time to open --- utils_ml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils_ml.py b/utils_ml.py index 850a162..3222188 100644 --- a/utils_ml.py +++ b/utils_ml.py @@ -114,10 +114,10 @@ def preprocess(type_of_model, type_of_activity): binary_features = ['gender_female', 'gender_male', 'achat_internet', 'categorie_age_0_10', 'categorie_age_10_20', 'categorie_age_20_30','categorie_age_30_40', 'categorie_age_40_50', 'categorie_age_50_60', 'categorie_age_60_70', 'categorie_age_70_80', 'categorie_age_plus_80','categorie_age_inconnue', 'country_fr', 'is_profession_known', 'is_zipcode_known', 'opt_in'] - """ + if type_of_activity=='musee': - numeric_features.pop('time_to_open') - """ + numeric_features.remove('time_to_open') + if type_of_model=='premium': if type_of_activity=='musique': binary_features.extend(['target_optin', 'target_newsletter'])