GithubHelp home page GithubHelp logo

samwestby / humanaiteamsandci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riedlc/humanaiteamsandci

0.0 0.0 0.0 88 KB

Code for Collective Intelligence In Human-AI Teams: A Bayesian Theory of Mind Approach

License: MIT License

Python 70.02% R 29.98%

humanaiteamsandci's Introduction

Collective Intelligence In Human-AI Teams: A Bayesian Theory of Mind Approach

This is code for the following publication: Westby, S. & Riedl, C. (2023). Collective Intelligence in Human-AI Teams: A Bayesian Theory of Mind Approach. In Proceedings of the 37th AAAI Conference on Artificial Intelligence (2023). https://arxiv.org/abs/2208.11660

Workflow:

  1. Download this directory
  2. Change working directory to the downloaded HumanAITeamsAndCI directory
  3. Create a Python 3.x environment and run pip install -r requirements.txt
  4. Run python -m scripts/results_table to replicate Table 1
  5. Run python -m scripts/figure_3 to replicate Figure 3
    Note: There was a problem with the random seeds so results and figures are marginally different
  6. Run python -m scripts/grid_search to redo the parameter grid search
    • Each run requires approximately 50 GB
    • On an intel i7 with 8 GB of RAM, this takes approximately 40 minutes
    • Change lower and upper in main() to search a smaller parameter space
    • Run it twice. Once with self_actualize = True and another with self_actualize = False
  7. Now we move on the the R code - replicating Figure 4 and the log likelihoods in Table 1
  8. In your preferred R editor, run scripts/LikAnalysis_discovery.R
    • Line 3 and 76 require you to input preferred directories
    • This file aggregates the grid search data
    • Repeat to analyze both grid searches from above
  9. Run rcode/LikAnalysis.R to generate the logLiks from Table 1
    • Input your preferred directories where noted
  10. Run rcode/MessageToM.R to generate the plots in Figure 4
    • Input your preferred directories where noted

humanaiteamsandci's People

Contributors

riedlc avatar samwestby 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.