All Projects β†’ KennethEnevoldsen β†’ tomsup

KennethEnevoldsen / tomsup

Licence: Apache-2.0 license
tomsup πŸ‘ Theory of Mind Simulation using Python. A package that allows for easy agent-based modelling of recursive Theory of Mind

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language
r
7636 projects
matlab
3953 projects

Projects that are alternatives of or similar to tomsup

utp-main
An implementation of Hoare and He's Unifying Theories of Programming in Isabelle
Stars: ✭ 30 (-38.78%)
Mutual labels:  theory
godot-practice-shaders
Some practice shaders in Godot
Stars: ✭ 79 (+61.22%)
Mutual labels:  tutorials
tutorials
All of the code for my Medium articles
Stars: ✭ 130 (+165.31%)
Mutual labels:  tutorials
cmil
CMIL - Clarified Multilingual Intermediate Language
Stars: ✭ 32 (-34.69%)
Mutual labels:  tutorials
nodejs-tutorials-hapi
Examples for the hapi tutorial series within the Future Studio University
Stars: ✭ 70 (+42.86%)
Mutual labels:  tutorials
asp.net-core-tutorial
ASP.NET Core ε…₯门教程
Stars: ✭ 42 (-14.29%)
Mutual labels:  tutorials
Build Your Own X
πŸ€“ Build your own (insert technology here)
Stars: ✭ 125,520 (+256063.27%)
Mutual labels:  tutorials
Blog-React-Hook-Tutorial
This is a beginner tutorial for react hooks I have written in dev.to and Medium
Stars: ✭ 21 (-57.14%)
Mutual labels:  tutorials
nodejs-tutorials
Sample implementations for actionable Node.js tutorials πŸš€
Stars: ✭ 29 (-40.82%)
Mutual labels:  tutorials
PaperWeeklyAI
πŸ“šγ€Œ@MaiweiAI」Studying papers in the fields of computer vision, NLP, and machine learning algorithms every week.
Stars: ✭ 50 (+2.04%)
Mutual labels:  tutorials
OSC19-Linux-Workshop-Sessions
All of the workshop sessions of OSC'19 in .md and .pdf formats.
Stars: ✭ 45 (-8.16%)
Mutual labels:  tutorials
New-ML-Data-Science-Framework-Tutorials-By-EJ
Internet's Most Popular Tutorials on Fresh-off-the-shelf ML & Data Science Technologies, Authored by Yours Truly.
Stars: ✭ 18 (-63.27%)
Mutual labels:  tutorials
iOS-Monitor-Resources
ε―Ήε„εŽ‚ε•†ηš„ iOS SDK ζ€§θƒ½η›‘ζŽ§ζ–Ήζ‘ˆηš„ζ•΄η†ε’Œζ”Άι›†εŽηš„θ΅„ζΊ
Stars: ✭ 31 (-36.73%)
Mutual labels:  tutorials
Manual Testing
This repository contains the General Test Cases for performing Manual Testing on the Web/Mobile application. It also has Test cases related to API Testing. Templates related to Test Plan and BugBash are also updated.
Stars: ✭ 134 (+173.47%)
Mutual labels:  tutorials
sktime-tutorial-pydata-amsterdam-2020
Introduction to Machine Learning with Time Series at PyData Festival Amsterdam 2020
Stars: ✭ 115 (+134.69%)
Mutual labels:  tutorials
dimensions-api-lab
Research data analytics tutorials using the Dimensions Analytics API
Stars: ✭ 68 (+38.78%)
Mutual labels:  tutorials
Android-Weekly
Android Weekly is a free newsletter that helps you to stay cutting-edge with your Android Development. The newsletter comes once a week and covers a broad range of topics like tutorials, screencasts, news... just everything that's awesome in the Android Development world!
Stars: ✭ 66 (+34.69%)
Mutual labels:  tutorials
PyCBC-Tutorials
Learn how to use PyCBC to analyze gravitational-wave data and do parameter inference.
Stars: ✭ 91 (+85.71%)
Mutual labels:  tutorials
ProvToolbox
Java library to create and convert W3C PROV data model representations
Stars: ✭ 62 (+26.53%)
Mutual labels:  tutorials
nftsim
C++ library for simulation of multiscale neural field dynamics
Stars: ✭ 24 (-51.02%)
Mutual labels:  theory

tomsup: Theory of Mind Simulation using Python

PyPI version pip downloads Code style: black python version license github actions pytest github actions docs CodeFactor

A Python Package for Agent-Based simulations. The package provides a computational eco-system for investigating and comparing computational models of hypothesized Theory of mind (ToM) mechanisms and for using them as experimental stimuli. The package notably includes an easy-to-use implementation of the variational Bayesian k-ToM model developed by Devaine, et al. (2017). This model has been shown able to capture individual and group-level differences in social skills, including between clinical populations and across primate species. It has also been deemed among the best computational models of ToM in terms of interaction with others and recursive representation of mental states. We provide a series of tutorials on how to implement the k-ToM model and a score of simpler types of ToM mechanisms in game-theory based simulations and experimental stimuli, including how to specify custom ToM models, and show examples of how resulting data can be analyzed.

πŸ“° News

  • 7 March 2022
  • v. 1.1.5
    • New plotting features were added
    • Speed and memory improvements as well as support for multicore simulations 🏎
    • Added workflows to ensure dependencies are being updated
    • Minor bugfixes
  • v. 1.1.0
    • A speed comparison between the matlab implementation was introduced, showing the the tomsup implementation to be notably faster.
    • An extensive testsuite was introduced, for how to run it see the FAQ.
    • Code coverage was upped to 86% and code quality was raised to A.
    • A documentation site was introduced.
    • Added continiuous integration to ensure that the package always works as intended, with support for mac, windows and linux tests.
    • A new logo was introduced 🌟
  • v. 1.0.0
    • tomsup released its first version along with a preprint on psyarxiv
    • A series of tutorials was introduced to get you started with tomsup

πŸ”§ Setup and installation

tomsup supports Python 3.6 or later. We strongly recommend that you install tomsup from pip. If you haven't installed pip you can install it from the official pip website, otherwise, run:

pip install tomsup 
Detailed instructions

You can also install it directly from GitHub by simply running:

pip install git+https://github.com/KennethEnevoldsen/tomsup.git

or more explicitly:

git clone https://github.com/KennethEnevoldsen/tomsup.git
cd tomsup
pip3 install -e .

Getting Started with tomsup

To get started with tomsup we recommend the tutorials in the tutorials folder. We recommend that you start with the introduction.

The tutorials are provided as Jupyter Notebooks. If you do not have Jupyter Notebook installed, instructions for installing and running can be found here.

Tutorial Content file name Open with
Documentation The documentations of tomsup
Introduction a general introduction to the features of tomsup which follows the implementation in the paper paper_implementation.ipynb Open In Colab
Creating an agent an example of how you would create new agent for the package. Creating_an_agent.ipynb Open In Colab
Specifying internal states a short guide on how to specify internal states on a k-ToM agent specifying_internal_states.ipynb Open In Colab
Psychopy experiment An example of how one might implement tomsup in an experiment Not a notebook, but a folder, psychopy_experiment Open in Github

πŸ€” Issues and Usage Q&A

To ask report issues or request features, please use the GitHub Issue Tracker. Otherwise, please use the discussion Forums.

FAQ

How do I test the code and run the test suite?

tomsup comes with an extensive test suite. In order to run the tests, you'll usually want to clone the repository and build tomsup from the source. This will also install the required development dependencies and test utilities defined in the requirements.txt.

pip install -r requirements.txt
pip install pytest

python -m pytest

which will run all the test in the tomsup/tests folder.

Specific tests can be run using:

python -m pytest tomsup/tests/<DesiredTest>.py

Code Coverage If you want to check code coverage you can run the following:

pip install pytest-cov

python -m pytest--cov=.
Does tomsup run on X?

tomssup is intended to run on all major OS, this includes Windows (latest version), MacOS (Catalina) and the latest version of Linux (Ubuntu). Please note these are only the systems tomsup is being actively tested on, if you run on a similar system (e.g. an earlier version of Linux) the package will likely run there as well.

How is the documentation generated?

Tomsup uses sphinx to generate documentation. It uses the Furo theme with a custom styling.

To make the documentation you can run:

# install sphinx, themes and extensions
pip install sphinx furo sphinx-copybutton sphinxext-opengraph

# generate html from documentations

make -C docs html

Using this Work

License

tomsup is released under the Apache License, Version 2.0.

Citing

If you use this work please cite:

@article{waade2022introducing,
  title={Introducing tomsup: Theory of mind simulations using Python},
  author={Waade, Peter T and Enevoldsen, Kenneth C and Vermillet, Arnault-Quentin and Simonsen, Arndis and Fusaroli, Riccardo},
  journal={Behavior Research Methods},
  pages={1--35},
  year={2022},
  publisher={Springer}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].