Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyGAAMAS
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxime Morge
PyGAAMAS
Commits
a4ed0b28
Commit
a4ed0b28
authored
2 weeks ago
by
stephanebonnevay
Browse files
Options
Downloads
Patches
Plain Diff
Readme
parent
00475af9
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
figures/mp/mp_payoff_ConstHT.svg
+175
-121
175 additions, 121 deletions
figures/mp/mp_payoff_ConstHT.svg
figures/mp/mp_prediction_ConstHT.svg
+246
-175
246 additions, 175 deletions
figures/mp/mp_prediction_ConstHT.svg
src/mp/mp_draw_constant.py
+3
-3
3 additions, 3 deletions
src/mp/mp_draw_constant.py
with
424 additions
and
299 deletions
figures/mp/mp_payoff_ConstHT.svg
+
175
−
121
View file @
a4ed0b28
This diff is collapsed.
Click to expand it.
figures/mp/mp_prediction_ConstHT.svg
+
246
−
175
View file @
a4ed0b28
This diff is collapsed.
Click to expand it.
src/mp/mp_draw_constant.py
+
3
−
3
View file @
a4ed0b28
...
@@ -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
)
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment