diff --git a/notebooks/oracle.ipynb b/notebooks/oracle.ipynb index 11e6afd..9061174 100644 --- a/notebooks/oracle.ipynb +++ b/notebooks/oracle.ipynb @@ -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" ] } ], @@ -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----> 1\u001b[0m a()\n", - "\u001b[0;31mTypeError\u001b[0m: 'int' object is not callable" - ] - } - ], - "source": [ - "a()" - ] } ], "metadata": {