From 65c2d0c93a1a1e2061d63695480dba4504f4d880 Mon Sep 17 00:00:00 2001 From: ShadekJaramillo Date: Mon, 21 Jul 2025 14:28:31 -0500 Subject: [PATCH] correction on model prediction calculations-algorithms.md In the original code the y_test series was passed to the model to make predictions. Apart from being conceptually wrong (we are giving the data to predict to the model as input for predictions) this also would raise an error because the model expects data with the same number of columns as X_train. --- 06-ml_algos/boosting-algorithms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/06-ml_algos/boosting-algorithms.md b/06-ml_algos/boosting-algorithms.md index f7ccdab..9a01f28 100644 --- a/06-ml_algos/boosting-algorithms.md +++ b/06-ml_algos/boosting-algorithms.md @@ -60,7 +60,7 @@ model = GradientBoostingRegressor(n_estimators = 5, random_state = 42) model.fit(X_train, y_train) -y_pred = model.predict(y_test) +y_pred = model.predict(X_test) ``` ### Model hyperparameterization