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.

CCN 2022 tutorial

For our tutorial at CCN 2022, you can follow along in the Jupyter notebook CCN_2022_Tutorial.ipynb. To run the notebook, you can either install the lqg package locally (see below) or open it in the browser on Google Colab.

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 -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 bounded 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.6.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

lqg-0.1.6-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file lqg-0.1.6.tar.gz.

File metadata

  • Download URL: lqg-0.1.6.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for lqg-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c52ba2f65bceb9c6875ace1d2556ff0a7aa3e80e292b48988bb05647c9633fec
MD5 2e19709e7389ef21e8c57d6ee7e3978b
BLAKE2b-256 451528a24053852d1db3571111495c1c4e97bef9f4a5c6bb27bca97f4d0751f9

See more details on using hashes here.

Provenance

File details

Details for the file lqg-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: lqg-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for lqg-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d27e713acd46bb5ed7181f4be7902a3469fea86bfe48589881e6e6a7143ec7c9
MD5 455ddedfd30bd8944370321b2c6d2ac6
BLAKE2b-256 e75be5e0fde9f7a28ccb366896b63cde5f6470dddcf4e3f1df96f4590ab316f9

See more details on using hashes here.

Provenance

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