GithubHelp home page GithubHelp logo

asneha213 / muddled_models Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carolfs/muddled_models

0.0 0.0 0.0 74.48 MB

Code and data for Feher da Silva, C., Hare, T.A. Humans primarily use model-based inference in the two-stage task. Nat Hum Behav (2020). https://doi.org/10.1038/s41562-020-0905-y

License: GNU General Public License v3.0

Python 91.10% Stan 8.90%

muddled_models's Introduction

This project contains the code required to run the spaceship and magic carpet tasks mentioned in the paper:

Feher da Silva, C., Hare, T.A. Humans primarily use model-based inference in the two-stage task. Nat Hum Behav (2020). https://doi.org/10.1038/s41562-020-0905-y

The experiments inside the magic_carpet and spaceship directories require Python 2.7 and PsychoPy 2 to run. They should run on standalone PsychoPy version 1.90.3. Just run the exp.py script in each directory.

We used the following fonts to display the instructions for the participants:

  • Noteworthy-Bold.ttf for the spaceship task
  • OpenSans-SemiBold.ttf for the magic carpet task

These fonts are not included in this repository because of the license. To run the tasks, you will need to change the path to these fonts. Where you have to do this is indicated in the exp.py file.

The behavioral data (choices and questionnaires) can be found in the results directory.

The data analyses and simulations are still being added to this repository. They use Python 3.6 and the Pipenv package to manage dependencies.

muddled_models's People

Contributors

carolfs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.