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

Readme

parent 00475af9
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
This diff is collapsed.
...@@ -16,7 +16,7 @@ df["outcomeRound"] = df["outcomeRound"].astype(float) ...@@ -16,7 +16,7 @@ df["outcomeRound"] = df["outcomeRound"].astype(float)
df["predictionRound"] = df.get("predictionRound", 0).fillna(0).astype(float) df["predictionRound"] = df.get("predictionRound", 0).fillna(0).astype(float)
# Filter opponent strategies # Filter opponent strategies
opponent_strategies = ["H-T", "T-H"] #"always_head", "always_tail"] opponent_strategies = ["always_head", "always_tail"]
df_filtered = df[df["opponentStrategy"].isin(opponent_strategies)].copy() df_filtered = df[df["opponentStrategy"].isin(opponent_strategies)].copy()
# Plot settings # Plot settings
...@@ -69,7 +69,7 @@ def plot_metric(metric: str, ylabel: str, title: str, filename: str, ylim: tuple ...@@ -69,7 +69,7 @@ def plot_metric(metric: str, ylabel: str, title: str, filename: str, ylim: tuple
plot_metric( plot_metric(
metric="outcomeRound", metric="outcomeRound",
ylabel="Average Points Earned", ylabel="Average Points Earned",
title="MP: Average Points Earned per Round by Model (95% CI)", title="MP: Average Points Earned per Round against Constant Behaviour (95% CI)",
filename="mp_payoff.svg", filename="mp_payoff.svg",
ylim=(-1, 1) ylim=(-1, 1)
) )
...@@ -78,7 +78,7 @@ plot_metric( ...@@ -78,7 +78,7 @@ plot_metric(
plot_metric( plot_metric(
metric="predictionRound", metric="predictionRound",
ylabel="Prediction Accuracy", ylabel="Prediction Accuracy",
title="MP: Prediction Accuracy per Round by Model (95% CI)", title="MP: Prediction Accuracy per Round against Constant Behaviour (95% CI)",
filename="mp_prediction.svg", filename="mp_prediction.svg",
ylim=(0, 1.05) 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