From b9eeb7ac5b7e0c4ff1812ce5c769bcc8af65c2a8 Mon Sep 17 00:00:00 2001 From: jason-d-jones Date: Fri, 2 Mar 2018 15:08:58 -0700 Subject: [PATCH] adding variable to catch third return from proc_df --- courses/ml1/lesson1-rf.ipynb | 2 +- courses/ml1/lesson2-rf_interpretation.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/courses/ml1/lesson1-rf.ipynb b/courses/ml1/lesson1-rf.ipynb index 0499e974e..779b4354d 100644 --- a/courses/ml1/lesson1-rf.ipynb +++ b/courses/ml1/lesson1-rf.ipynb @@ -3490,7 +3490,7 @@ }, "outputs": [], "source": [ - "df_trn, y_trn = proc_df(df_raw, 'SalePrice')\n", + "df_trn, y_trn, nas = proc_df(df_raw, 'SalePrice')\n", "X_train, X_valid = split_vals(df_trn, n_trn)\n", "y_train, y_valid = split_vals(y_trn, n_trn)" ] diff --git a/courses/ml1/lesson2-rf_interpretation.ipynb b/courses/ml1/lesson2-rf_interpretation.ipynb index d7eccce43..91066e513 100644 --- a/courses/ml1/lesson2-rf_interpretation.ipynb +++ b/courses/ml1/lesson2-rf_interpretation.ipynb @@ -3434,7 +3434,7 @@ "df_ext = df_keep.copy()\n", "df_ext['is_valid'] = 1\n", "df_ext.is_valid[:n_trn] = 0\n", - "x, y = proc_df(df_ext, 'is_valid')" + "x, y, nas = proc_df(df_ext, 'is_valid')" ] }, {