diff --git a/HospitalWaitTimeCalc.ipynb b/HospitalWaitTimeCalc.ipynb index 112dafe..81be24f 100644 --- a/HospitalWaitTimeCalc.ipynb +++ b/HospitalWaitTimeCalc.ipynb @@ -830,7 +830,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 17, @@ -2360,42 +2360,6 @@ "print(\"RMSE:\", np.sqrt(mean_squared_error(y_test, y_pred)))" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Save the trained model for reuse - Rayyan Hodges" - ] - }, - { - "cell_type": "code", - "execution_count": 37, - "metadata": {}, - "outputs": [], - "source": [ - "import joblib" - ] - }, - { - "cell_type": "code", - "execution_count": 38, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['model.pkl']" - ] - }, - "execution_count": 38, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "joblib.dump(model, \"model.pkl\")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -2405,7 +2369,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 37, "metadata": {}, "outputs": [ { @@ -2429,7 +2393,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 38, "metadata": {}, "outputs": [ { @@ -2461,7 +2425,7 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": 39, "metadata": {}, "outputs": [], "source": [ @@ -2487,13 +2451,13 @@ }, { "cell_type": "code", - "execution_count": 50, + "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
XGBRegressor(base_score=None, booster=None, callbacks=None,\n",
+       "
XGBRegressor(base_score=None, booster=None, callbacks=None,\n",
        "             colsample_bylevel=None, colsample_bynode=None,\n",
        "             colsample_bytree=0.8, device=None, early_stopping_rounds=None,\n",
        "             enable_categorical=False, eval_metric=None, feature_types=None,\n",
@@ -2918,7 +2882,7 @@
        "             max_cat_to_onehot=None, max_delta_step=None, max_depth=5,\n",
        "             max_leaves=None, min_child_weight=None, missing=nan,\n",
        "             monotone_constraints=None, multi_strategy=None, n_estimators=400,\n",
-       "             n_jobs=None, num_parallel_tree=None, ...)
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.