Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurrani808 committed May 18, 2024
1 parent a3e697f commit 5557f2f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions final.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
"\n",
"fig, axes = plt.subplots(3, 1, figsize=(10, 20))\n",
"\n",
"\n",
"# innacuraccy differential graph\n",
"ax1 = axes[0]\n",
"x = range(len(inaccuracyGroups))\n",
"y = df.groupby(\"Inaccuracy Differential Group\", observed=True)[\"Result\"].mean()\n",
Expand All @@ -908,6 +908,7 @@
"ax1.set_xlabel('Inaccuracy Differential Group')\n",
"ax1.set_ylabel('Mean Result')\n",
"\n",
"#mistake differential graph\n",
"ax2 = axes[1]\n",
"x = range(len(mistakeGroups))\n",
"y = df.groupby(\"Mistake Differential Group\", observed=True)[\"Result\"].mean()\n",
Expand All @@ -916,6 +917,7 @@
"ax2.set_xlabel('Mistake Differential Group')\n",
"ax2.set_ylabel('Mean Result')\n",
"\n",
"# blunder differential graph\n",
"ax3 = axes[2]\n",
"x = range(len(blunderGroups))\n",
"y = df.groupby(\"Blunder Differential Group\", observed=True)[\"Result\"].mean()\n",
Expand Down Expand Up @@ -966,6 +968,7 @@
"# Drop na values caused by values that don't fit the bins\n",
"groups = df[\"EloGroup\"].dropna().unique().sort_values()\n",
"\n",
"#elo differential graph\n",
"x = range(len(groups))\n",
"y = df.groupby(\"EloGroup\", observed=True)[\"Result\"].mean()\n",
"plt.figure(figsize=(10,6))\n",
Expand Down Expand Up @@ -1642,8 +1645,6 @@
}
],
"source": [
"\n",
"\n",
"param_grid = {\n",
" 'n_estimators': [50, 100, 200],\n",
" 'learning_rate': [0.01, 0.1, 0.2],\n",
Expand Down Expand Up @@ -2032,8 +2033,8 @@
"\n",
"print(f\"Accuracy of Greater ELO Wins Benchmark: {accuracy_bench1*100:.2f}%\")\n",
"print(f\"Accuracy of Randomly Guessing Winner: {accuracy_bench2*100:.2f}%\")\n",
"print(f\"Accuracy of Random Forest Predictions (w/o hyperparameter): {accuracy_bench3*100:.2f}%\")\n",
"print(f\"Accuracy of Random Forest Predictions (w/ hyperparameter): {accuracy_bench4*100:.2f}%\")\n",
"print(f\"Accuracy of Gradient Boosting Predictions (w/o hyperparameter): {accuracy_bench3*100:.2f}%\")\n",
"print(f\"Accuracy of Gradient Boosting Predictions (w/ hyperparameter): {accuracy_bench4*100:.2f}%\")\n",
"\n"
]
},
Expand Down

0 comments on commit 5557f2f

Please sign in to comment.