mirror of
https://github.com/reiyua/HospitalWaitTimeCalc.git
synced 2026-11-17 06:12:05 +11:00
Use different validation technique without numpy and rerun
This commit is contained in:
parent
28c2117df4
commit
58cc898ead
1 changed files with 5 additions and 5 deletions
|
|
@ -830,7 +830,7 @@
|
|||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<matplotlib.collections.PathCollection at 0x7b29bc1ba750>"
|
||||
"<matplotlib.collections.PathCollection at 0x75d08a39ef90>"
|
||||
]
|
||||
},
|
||||
"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."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue