From 72232872e922d5a24e212854587428b6e401f490 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 14 Nov 2022 21:31:13 -0500 Subject: push --- project.ipynb | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 102 insertions(+), 5 deletions(-) diff --git a/project.ipynb b/project.ipynb index 445ea22..7e3ffd4 100644 --- a/project.ipynb +++ b/project.ipynb @@ -1853,7 +1853,107 @@ }, { "cell_type": "code", - "execution_count": 1145, + "execution_count": 1152, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
R-SqRMSEMAE
RidgeCV0.060517163.39339362.532860
DecisionTreeRegressor0.051456164.17948161.556500
RandomForestRegressor0.038417165.30402360.911719
DummyRegressor-0.000054168.57835666.384145
KNeighborsRegressor-0.086344175.70085961.922131
GradientBoostingRegressor-0.145187180.39656164.375011
LinearRegression-7.239768483.891107364.603158
\n", + "
" + ], + "text/plain": [ + " R-Sq RMSE MAE\n", + "RidgeCV 0.060517 163.393393 62.532860\n", + "DecisionTreeRegressor 0.051456 164.179481 61.556500\n", + "RandomForestRegressor 0.038417 165.304023 60.911719\n", + "DummyRegressor -0.000054 168.578356 66.384145\n", + "KNeighborsRegressor -0.086344 175.700859 61.922131\n", + "GradientBoostingRegressor -0.145187 180.396561 64.375011\n", + "LinearRegression -7.239768 483.891107 364.603158" + ] + }, + "execution_count": 1152, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Compare model performance\n", + "ups_model_performance_df = pd.DataFrame.from_dict(ups_model_performance_dict, orient='index', columns=['R-Sq', 'RMSE', 'MAE'])\n", + "ups_model_performance_df.sort_values(by='R-Sq', ascending=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 1153, "metadata": {}, "outputs": [ { @@ -1940,15 +2040,12 @@ "LinearRegression -23.806729 172.333979 134.354980" ] }, - "execution_count": 1145, + "execution_count": 1153, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "# Compare model performance\n", - "ups_model_performance_df = pd.DataFrame.from_dict(ups_model_performance_dict, orient='index', columns=['R-Sq', 'RMSE', 'MAE'])\n", - "ups_model_performance_df.sort_values(by='R-Sq', ascending=False)\n", "\n", "num_comments_model_performance_df = pd.DataFrame.from_dict(num_comments_model_performance_dict, orient='index', columns=['R-Sq', 'RMSE', 'MAE'])\n", "num_comments_model_performance_df.sort_values(by='R-Sq', ascending=False)" -- cgit v1.2.3