From 58cc898eadf4efdf090385bd38970a99ea4d87e3 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 12 Jun 2026 03:53:29 +0000 Subject: [PATCH] Use different validation technique without numpy and rerun --- HospitalWaitTimeCalc.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HospitalWaitTimeCalc.ipynb b/HospitalWaitTimeCalc.ipynb index de7ac53..2e2cf35 100644 --- a/HospitalWaitTimeCalc.ipynb +++ b/HospitalWaitTimeCalc.ipynb @@ -830,7 +830,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 17, @@ -2335,8 +2335,8 @@ "metadata": {}, "outputs": [], "source": [ - "y_pred = model.predict(X_test)\n", - "y_pred = np.clip(y_pred, a_min=0, a_max=None) # Forces negative wait times to be 0" + "raw_predictions = model.predict(X_test)\n", + "y_pred = [max(0, time) for time in raw_predictions] # Force negative values to be 0." ] }, { @@ -2931,8 +2931,8 @@ "metadata": {}, "outputs": [], "source": [ - "y_pred = model.predict(X_test)\n", - "y_pred = np.clip(y_pred, a_min=0, a_max=None) # Forces negative wait times to be 0" + "raw_predictions = model.predict(X_test)\n", + "y_pred = [max(0, time) for time in raw_predictions] # Force negative values to be 0." ] }, {