Commit b5ab74f
Terminology for agent versus "standard" values in extensive games (#642)
This clarifies and standardises terminology for "standard Nash" versus "(multi)agent Nash".
* What was previously being called `liap_value` and `*_regret` in mixed behaviour profiles is actually the *agent* versions of these concepts. The functions have been renamed accordingly (prefixed by `agent_`).
* New versions of `liap_value` and `*_regret` are now provided, which compute the standard values of these concepts (currently, by passing to the corresponding mixed strategy profile).
* Two methods, `enumpure` and `liap`, were actually computing agent profiles. These have been changed to have versions with `agent` in the name. Other methods on the extensive form do actually compute Nash equilibria, and so they are not changed.
Closes #617
* For mixed behaviors renamed `liap_value` -> `agent_liap_value` and `max_regret` -> `agent_max_regret` in Python
* Rename agent functions in MixedBehaviorProfile
* Separated out `enumpure_agent_solve` function for clarity.
* Add `liap_agent_solve` and remove that functionality from `liap_solve` for expositional clarity.
* Change interface of `gambit-liap` to be more similar to `gambit-enumpure`
* Change GUI behavior to use only strategic for enumpure and liap
* Implement new (correct) max_regret and liap_value on mixed behaviour profiles
* fixed typo: self.__max_regret -> self._max_regret
* tests for max_regret/infoset regret on mixed behavior profiles
* added tests/test_games/myerson_fig_4_2.efg
* Added comprehensive tests for GameStructureChangedError (#700)
* agent_{liap_value,max_regret} added to tests for GameStructureChangedError
* Fix incorrect function called in MixedBehaviorProfile.liap_value
* remove xfail from test for Myerson fig 4.2 agent versus non-agent liap value
* title and comment in tests/test_games/myerson_fig_4_2.efg
* notebook showing agent versus non-agent notions
* missing file
* using liap_solve and enummixed_solv in 04_agent_versus_non_agent_regret.ipynb
* improve 04_agent_versus_non_agent_regret.ipynb
* move to advanced_tutorials/agent_versus_non_agent_regret.ipynb
* fix relative import
* agent -> non-agent max_regret/liap_solve in 03_stripped_down_poker.ipynb
* removed use_strategic from call to logit_solve in 03_stripped_down_poker.ipynb
* Updated ChangeLog.
* fixing up enumpoly tests
* problem cases shown in tests
* test_regrets_tmp
* clearer example of (one) problem
* test demonstrating issue is to do with infoset order
* test demonstrating issue is to do with infoset order
* Previous test failures were due to not calling `.sort_infosets()` prior to analysis.
We are going to remove `.sort_infosets()` separately; for the moment this adjusts the tests to add an explicit call to clear the errors for clarity.
* Tidy up tests now that information set sorting is obsolete.
---------
Co-authored-by: Rahul Savani <rahul.savani@gmail.com>1 parent 4c1c6bf commit b5ab74f
26 files changed
Lines changed: 1578 additions & 278 deletions
File tree
- contrib/games
- doc
- tutorials
- advanced_tutorials
- src
- games
- gui
- pygambit
- solvers
- enumpoly
- liap
- logit
- tools/liap
- tests
- test_games
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| |||
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
31 | 47 | | |
32 | 48 | | |
33 | 49 | | |
| |||
0 commit comments