├── .github ├── ISSUE_TEMPLATE │ ├── 01_bugs.md │ ├── 02_docs.md │ ├── 03_feature-request.md │ └── config.yml └── workflows │ ├── black_formatter.yml │ ├── depandabot_automerge.yml │ ├── documentation.yml │ ├── publish_to_pypi.yml │ ├── pytest-cov-comment.yml │ └── stale.yml ├── .gitignore ├── LICENSE ├── MANIFEST.in ├── README.md ├── citation.cff ├── dev ├── CogSci19_MatchingPennies_TOM_data.csv ├── fit_maximum_likelihood.py └── json_writer.py ├── docs ├── Makefile ├── _static │ ├── favicon.ico │ └── icon.png ├── agent.rst ├── conf.py ├── index.rst ├── installation.rst ├── ktom_functions.rst ├── make.bat ├── payoffmatrix.rst ├── plot.rst ├── using-tomsup.rst └── utils.rst ├── img ├── icon.png ├── icon_black.png └── icon_black2.png ├── papers └── introducing_tomsup │ ├── comparison │ ├── VBA_behavior_comparison.m │ ├── VBA_behavior_comparison_helper.m │ ├── VBA_speed_comparison.m │ ├── tomsup_behaviour_comparison.py │ └── tomsup_speed_comparison.py │ ├── experiment_analysis │ ├── .Rprofile │ ├── CogSci19_MatchingPennies_TOM_data.csv │ ├── CogSci19_MatchingPennies_TOM_data_updated.csv │ ├── analysis.Rmd │ ├── forced_choices.py │ ├── renv.lock │ └── renv │ │ └── activate.R │ ├── large_tournament.py │ ├── parameter_estimation.py │ └── parameters_estimation │ ├── bias.png │ ├── parameter_estimation.Rmd │ ├── pk.png │ ├── temp.png │ └── volatility.png ├── requirements.txt ├── setup.cfg ├── setup.py ├── tomsup ├── __init__.py ├── about.py ├── agent.py ├── agent_info.json ├── ktom_functions.py ├── payoffmatrix.py ├── plot.py ├── tests │ ├── __init__.py │ ├── test_agent.py │ ├── test_ktom_functions.py │ ├── test_payoffmatrix.py │ └── test_tutorials │ │ ├── __init__.py │ │ ├── test_creating_an_agent.py │ │ ├── test_getting_started.py │ │ ├── test_paper_implementation.py │ │ └── test_specifying_internal_states.py └── utils.py └── tutorials ├── Creating_an_agent.ipynb ├── Getting_started.ipynb ├── img ├── gm_0_tom.png ├── overview.png └── overview_dp.png ├── introduction_to_basic_agents.ipynb ├── paper.ndjson ├── paper_implementation.ipynb ├── psychopy_experiment ├── images │ ├── LH_closed.png │ ├── LH_coin.png │ ├── LH_open.png │ ├── RH_closed.png │ ├── RH_coin.png │ └── RH_open.png ├── matching_pennies.py └── readme.md └── specifying_internal_states.ipynb /.github/ISSUE_TEMPLATE/01_bugs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/ISSUE_TEMPLATE/01_bugs.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/02_docs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/ISSUE_TEMPLATE/02_docs.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/03_feature-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/ISSUE_TEMPLATE/03_feature-request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/workflows/black_formatter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/black_formatter.yml -------------------------------------------------------------------------------- /.github/workflows/depandabot_automerge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/depandabot_automerge.yml -------------------------------------------------------------------------------- /.github/workflows/documentation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/documentation.yml -------------------------------------------------------------------------------- /.github/workflows/publish_to_pypi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/publish_to_pypi.yml -------------------------------------------------------------------------------- /.github/workflows/pytest-cov-comment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/pytest-cov-comment.yml -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include tomsup/agent_info.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/README.md -------------------------------------------------------------------------------- /citation.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/citation.cff -------------------------------------------------------------------------------- /dev/CogSci19_MatchingPennies_TOM_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/dev/CogSci19_MatchingPennies_TOM_data.csv -------------------------------------------------------------------------------- /dev/fit_maximum_likelihood.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/dev/fit_maximum_likelihood.py -------------------------------------------------------------------------------- /dev/json_writer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/dev/json_writer.py -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/_static/favicon.ico -------------------------------------------------------------------------------- /docs/_static/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/_static/icon.png -------------------------------------------------------------------------------- /docs/agent.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/agent.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/installation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/installation.rst -------------------------------------------------------------------------------- /docs/ktom_functions.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/ktom_functions.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/payoffmatrix.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/payoffmatrix.rst -------------------------------------------------------------------------------- /docs/plot.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/plot.rst -------------------------------------------------------------------------------- /docs/using-tomsup.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/using-tomsup.rst -------------------------------------------------------------------------------- /docs/utils.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/docs/utils.rst -------------------------------------------------------------------------------- /img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/img/icon.png -------------------------------------------------------------------------------- /img/icon_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/img/icon_black.png -------------------------------------------------------------------------------- /img/icon_black2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/img/icon_black2.png -------------------------------------------------------------------------------- /papers/introducing_tomsup/comparison/VBA_behavior_comparison.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/comparison/VBA_behavior_comparison.m -------------------------------------------------------------------------------- /papers/introducing_tomsup/comparison/VBA_behavior_comparison_helper.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/comparison/VBA_behavior_comparison_helper.m -------------------------------------------------------------------------------- /papers/introducing_tomsup/comparison/VBA_speed_comparison.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/comparison/VBA_speed_comparison.m -------------------------------------------------------------------------------- /papers/introducing_tomsup/comparison/tomsup_behaviour_comparison.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/comparison/tomsup_behaviour_comparison.py -------------------------------------------------------------------------------- /papers/introducing_tomsup/comparison/tomsup_speed_comparison.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/comparison/tomsup_speed_comparison.py -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/.Rprofile: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/CogSci19_MatchingPennies_TOM_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/CogSci19_MatchingPennies_TOM_data.csv -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/CogSci19_MatchingPennies_TOM_data_updated.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/CogSci19_MatchingPennies_TOM_data_updated.csv -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/analysis.Rmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/analysis.Rmd -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/forced_choices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/forced_choices.py -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/renv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/renv.lock -------------------------------------------------------------------------------- /papers/introducing_tomsup/experiment_analysis/renv/activate.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/experiment_analysis/renv/activate.R -------------------------------------------------------------------------------- /papers/introducing_tomsup/large_tournament.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/large_tournament.py -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameter_estimation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameter_estimation.py -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameters_estimation/bias.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameters_estimation/bias.png -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameters_estimation/parameter_estimation.Rmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameters_estimation/parameter_estimation.Rmd -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameters_estimation/pk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameters_estimation/pk.png -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameters_estimation/temp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameters_estimation/temp.png -------------------------------------------------------------------------------- /papers/introducing_tomsup/parameters_estimation/volatility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/papers/introducing_tomsup/parameters_estimation/volatility.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/setup.py -------------------------------------------------------------------------------- /tomsup/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/__init__.py -------------------------------------------------------------------------------- /tomsup/about.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/about.py -------------------------------------------------------------------------------- /tomsup/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/agent.py -------------------------------------------------------------------------------- /tomsup/agent_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/agent_info.json -------------------------------------------------------------------------------- /tomsup/ktom_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/ktom_functions.py -------------------------------------------------------------------------------- /tomsup/payoffmatrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/payoffmatrix.py -------------------------------------------------------------------------------- /tomsup/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/plot.py -------------------------------------------------------------------------------- /tomsup/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tomsup/tests/test_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_agent.py -------------------------------------------------------------------------------- /tomsup/tests/test_ktom_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_ktom_functions.py -------------------------------------------------------------------------------- /tomsup/tests/test_payoffmatrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_payoffmatrix.py -------------------------------------------------------------------------------- /tomsup/tests/test_tutorials/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tomsup/tests/test_tutorials/test_creating_an_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_tutorials/test_creating_an_agent.py -------------------------------------------------------------------------------- /tomsup/tests/test_tutorials/test_getting_started.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_tutorials/test_getting_started.py -------------------------------------------------------------------------------- /tomsup/tests/test_tutorials/test_paper_implementation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_tutorials/test_paper_implementation.py -------------------------------------------------------------------------------- /tomsup/tests/test_tutorials/test_specifying_internal_states.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/tests/test_tutorials/test_specifying_internal_states.py -------------------------------------------------------------------------------- /tomsup/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tomsup/utils.py -------------------------------------------------------------------------------- /tutorials/Creating_an_agent.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/Creating_an_agent.ipynb -------------------------------------------------------------------------------- /tutorials/Getting_started.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/Getting_started.ipynb -------------------------------------------------------------------------------- /tutorials/img/gm_0_tom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/img/gm_0_tom.png -------------------------------------------------------------------------------- /tutorials/img/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/img/overview.png -------------------------------------------------------------------------------- /tutorials/img/overview_dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/img/overview_dp.png -------------------------------------------------------------------------------- /tutorials/introduction_to_basic_agents.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/introduction_to_basic_agents.ipynb -------------------------------------------------------------------------------- /tutorials/paper.ndjson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/paper.ndjson -------------------------------------------------------------------------------- /tutorials/paper_implementation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/paper_implementation.ipynb -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/LH_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/LH_closed.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/LH_coin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/LH_coin.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/LH_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/LH_open.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/RH_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/RH_closed.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/RH_coin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/RH_coin.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/images/RH_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/images/RH_open.png -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/matching_pennies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/matching_pennies.py -------------------------------------------------------------------------------- /tutorials/psychopy_experiment/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/psychopy_experiment/readme.md -------------------------------------------------------------------------------- /tutorials/specifying_internal_states.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethEnevoldsen/tomsup/HEAD/tutorials/specifying_internal_states.ipynb --------------------------------------------------------------------------------