Use different validation technique without numpy and rerun

This commit is contained in:
Ray 2026-06-12 03:53:29 +00:00 • committed by GitHub
parent 28c2117df4
commit 58cc898ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -830,7 +830,7 @@
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.collections.PathCollection at 0x7b29bc1ba750>" "<matplotlib.collections.PathCollection at 0x75d08a39ef90>"
] ]
}, },
"execution_count": 17, "execution_count": 17,
@ -2335,8 +2335,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"y_pred = model.predict(X_test)\n", "raw_predictions = model.predict(X_test)\n",
"y_pred = np.clip(y_pred, a_min=0, a_max=None) # Forces negative wait times to be 0" "y_pred = [max(0, time) for time in raw_predictions] # Force negative values to be 0."
] ]
}, },
{ {
@ -2931,8 +2931,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"y_pred = model.predict(X_test)\n", "raw_predictions = model.predict(X_test)\n",
"y_pred = np.clip(y_pred, a_min=0, a_max=None) # Forces negative wait times to be 0" "y_pred = [max(0, time) for time in raw_predictions] # Force negative values to be 0."
] ]
}, },
{ {