From 99d55a33b2b33e29f34ff78e207519132a613ddd Mon Sep 17 00:00:00 2001 From: Jess Date: Wed, 27 Aug 2025 13:54:53 +0200 Subject: [PATCH 1/4] recuperation of imputing and scaling files (bugg) --- scripts/Imputing.py | 4 ++-- scripts/Scaling.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/Imputing.py b/scripts/Imputing.py index 7aa5670..adb8424 100644 --- a/scripts/Imputing.py +++ b/scripts/Imputing.py @@ -24,5 +24,5 @@ def knn_impute_numeric(df, n_neighbors=5): return imputed_df -imputed_df = knn_impute_numeric(filtered_df, n_neighbors=5) -imputed_df.head() \ No newline at end of file +#imputed_df = knn_impute_numeric(filtered_df, n_neighbors=5) +#imputed_df.head() \ No newline at end of file diff --git a/scripts/Scaling.py b/scripts/Scaling.py index 9908e3f..e3813d9 100644 --- a/scripts/Scaling.py +++ b/scripts/Scaling.py @@ -25,5 +25,5 @@ def scaler_numeric(df, target_col=''): return scaled_df -scaled_df = scaler_numeric(imputed_df, target_col='nutriscore_score') -scaled_df.head() \ No newline at end of file +#scaled_df = scaler_numeric(imputed_df, target_col='nutriscore_score') +#scaled_df.head() \ No newline at end of file From 2f0edce3a39a1d6ad32fba5488ae56244528aca2 Mon Sep 17 00:00:00 2001 From: Jess Date: Wed, 27 Aug 2025 14:03:04 +0200 Subject: [PATCH 2/4] new scripts commit --- scripts/Imputing.py | 2 +- scripts/Scaling.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Imputing.py b/scripts/Imputing.py index adb8424..ab2c825 100644 --- a/scripts/Imputing.py +++ b/scripts/Imputing.py @@ -25,4 +25,4 @@ def knn_impute_numeric(df, n_neighbors=5): return imputed_df #imputed_df = knn_impute_numeric(filtered_df, n_neighbors=5) -#imputed_df.head() \ No newline at end of file +#imputed_df.head() \ No newline at end of file diff --git a/scripts/Scaling.py b/scripts/Scaling.py index e3813d9..9923e5d 100644 --- a/scripts/Scaling.py +++ b/scripts/Scaling.py @@ -26,4 +26,4 @@ def scaler_numeric(df, target_col=''): return scaled_df #scaled_df = scaler_numeric(imputed_df, target_col='nutriscore_score') -#scaled_df.head() \ No newline at end of file +#scaled_df.head() \ No newline at end of file From b6f61eb7161ea30899fee8ee87dc66e38a3c0633 Mon Sep 17 00:00:00 2001 From: Jess Date: Wed, 27 Aug 2025 14:03:49 +0200 Subject: [PATCH 3/4] scripts 2 --- scripts/Scaling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Scaling.py b/scripts/Scaling.py index 9923e5d..88a5b7c 100644 --- a/scripts/Scaling.py +++ b/scripts/Scaling.py @@ -1,5 +1,6 @@ #This function scales numerical values from sklearn.preprocessing import RobustScaler +import pandas as pd def scaler_numeric(df, target_col=''): #separate the nutriscore and the rest of the values to do the scaling From 3819d1518a642f5da50ca3d8445f1f98eac682f0 Mon Sep 17 00:00:00 2001 From: Jess Date: Wed, 27 Aug 2025 14:11:51 +0200 Subject: [PATCH 4/4] new commitments to repair scripts bug --- scripts/Imputing.py | 2 +- scripts/Scaling.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Imputing.py b/scripts/Imputing.py index d9d4cce..4b6bbda 100644 --- a/scripts/Imputing.py +++ b/scripts/Imputing.py @@ -26,4 +26,4 @@ def knn_impute_numeric(df, n_neighbors=5): return imputed_df #imputed_df = knn_impute_numeric(filtered_df, n_neighbors=5) -#imputed_df.head() +#imputed_df.head() diff --git a/scripts/Scaling.py b/scripts/Scaling.py index cc12510..6e15393 100644 --- a/scripts/Scaling.py +++ b/scripts/Scaling.py @@ -28,4 +28,4 @@ def scaler_numeric(df, target_col=''): return scaled_df #scaled_df = scaler_numeric(imputed_df, target_col='nutriscore_score') -#scaled_df.head() +#scaled_df.head()