Skip to content

Commit

Permalink
oracle scores
Browse files Browse the repository at this point in the history
  • Loading branch information
ggsavin committed Jan 28, 2024
1 parent 8214f26 commit 73819fb
Showing 1 changed file with 15 additions and 40 deletions.
55 changes: 15 additions & 40 deletions notebooks/oracle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,21 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Without Oracle wins : 0.58\n"
"Without Oracle wins : 0.58\n",
"Oracle wins with 1 for villagers and a chance of voting for werewolves at 0.0: 0.45\n",
"Oracle wins with 1 for villagers and a chance of voting for werewolves at 0.25: 0.47\n",
"Oracle wins with 1 for villagers and a chance of voting for werewolves at 0.5: 0.41\n",
"Oracle wins with 1 for villagers and a chance of voting for werewolves at 0.75: 0.46\n",
"Oracle wins with 1 for villagers and a chance of voting for werewolves at 1.0: 0.43\n",
"\n",
"\n",
"Oracle wins with 0 for villagers and a chance of voting for werewolves at 0.0: 0.55\n",
"Oracle wins with 0 for villagers and a chance of voting for werewolves at 0.25: 0.54\n",
"Oracle wins with 0 for villagers and a chance of voting for werewolves at 0.5: 0.56\n",
"Oracle wins with 0 for villagers and a chance of voting for werewolves at 0.75: 0.52\n",
"Oracle wins with 0 for villagers and a chance of voting for werewolves at 1.0: 0.52\n",
"\n",
"\n"
]
}
],
Expand Down Expand Up @@ -209,45 +223,6 @@
"# wins, replays = play_recurrent_game_with_oracle(env, random_approval_wolf, trained_approval_agent, num_times=num_times, hidden_state_size=256, voting_type=\"approval\", static_villager_policy=\"random\")\n",
"# print(f'With other random villager wins : {wins/float(num_times):.2f}')\n"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid decimal literal (114482663.py, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m Cell \u001b[0;32mIn[16], line 1\u001b[0;36m\u001b[0m\n\u001b[0;31m 10.2222:.2f\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid decimal literal\n"
]
}
],
"source": [
"10.2222:.2f"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"ename": "TypeError",
"evalue": "'int' object is not callable",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m/workspaces/voting-games/notebooks/oracle.ipynb Cell 6\u001b[0m line \u001b[0;36m1\n\u001b[0;32m----> <a href='vscode-notebook-cell://dev-container%2B7b22686f737450617468223a225c5c5c5c77736c2e6c6f63616c686f73745c5c5562756e74755c5c686f6d655c5c67736176696e5c5c6361726c65746f6e5c5c766f74696e672d67616d6573222c22636f6e66696746696c65223a7b22246d6964223a312c2270617468223a222f686f6d652f67736176696e2f6361726c65746f6e2f766f74696e672d67616d65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a227673636f64652d66696c65486f7374227d7d/workspaces/voting-games/notebooks/oracle.ipynb#W5sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0'>1</a>\u001b[0m a()\n",
"\u001b[0;31mTypeError\u001b[0m: 'int' object is not callable"
]
}
],
"source": [
"a()"
]
}
],
"metadata": {
Expand Down

0 comments on commit 73819fb

Please sign in to comment.