Skip to content
Snippets Groups Projects
Commit 88756456 authored by stephanebonnevay's avatar stephanebonnevay
Browse files

Readme

parent a4ed0b28
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -16,7 +16,7 @@ df["outcomeRound"] = df["outcomeRound"].astype(float)
df["predictionRound"] = df.get("predictionRound", 0).fillna(0).astype(float)
# Filter opponent strategies
opponent_strategies = ["always_head", "always_tail"]
opponent_strategies = ["H-T", "T-H"] #"always_head", "always_tail"]
df_filtered = df[df["opponentStrategy"].isin(opponent_strategies)].copy()
# Plot settings
......@@ -69,7 +69,7 @@ def plot_metric(metric: str, ylabel: str, title: str, filename: str, ylim: tuple
plot_metric(
metric="outcomeRound",
ylabel="Average Points Earned",
title="MP: Average Points Earned per Round against Constant Behaviour (95% CI)",
title="MP: Average Points Earned per Round against Alternate Behaviour (95% CI)",
filename="mp_payoff.svg",
ylim=(-1, 1)
)
......@@ -78,7 +78,7 @@ plot_metric(
plot_metric(
metric="predictionRound",
ylabel="Prediction Accuracy",
title="MP: Prediction Accuracy per Round against Constant Behaviour (95% CI)",
title="MP: Prediction Accuracy per Round against Alternate Behaviour (95% CI)",
filename="mp_prediction.svg",
ylim=(0, 1.05)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment