Skip to main content

(Inverse) optimal control for linear quadratic Gaussian systems

Project description

Inverse optimal control for continuous psychophysics

Experimenter-actor-loop

This repository contains the official implementation of the inverse optimal control method presented in the paper:

Straub, D., & Rothkopf, C. A. (2021). Putting perception into action: Inverse optimal control for continuous psychophysics. bioRxiv.

Installation

The package can be installed via pip

python -m pip install lqg

although I recommend cloning the repository to get the most recent version and installing locally with a virtual environment

python -m venv env
source env/bin/activate
python -m pip install -r requirements.txt
python -m pip install -e .

Usage examples

  • main.py shows how to simulate data and infer parameters using the LQG model of the tracking task.

  • notebooks/01-HowTo.ipynb explains the model and its parameters in more detail, including the extension to subjective internal models.

  • notebooks/02-Data.ipynb fits the ideal observer and subjective actor model to the data from Bonnen et al. (2015) to reproduce Fig. 4A from our paper.

Citation

If you use our method in your research, please cite our preprint:

@article{straub2021putting,
  title={Putting perception into action: Inverse optimal control for continuous psychophysics},
  author={Straub, Dominik and Rothkopf, Constantin A},
  journal={bioRxiv},
  year={2021},
  publisher={Cold Spring Harbor Laboratory}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lqg-0.1.1.tar.gz (29.8 kB view hashes)

Uploaded Source

Built Distribution

lqg-0.1.1-py3-none-any.whl (34.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page