Examples

Note

To run the example-notebooks, you also need the additional dependencies matplotlib and ipympl.

Basics

Parameter Retrieval

What are the retrieval examples doing?

The retrieval examples show how to use rt1_model package together with scipy.optimize to retrieve model parameters from datasets via non-linear least squares optimization.

All examples follow the same basic structure (e.g. “closed-loop experiments”):

  1. Select a model configuration.

  2. Simulate a dataset using a set of random input-parameters.

  3. Add some random noise to the data.

  4. Use an optimization procedure to retrieve the parameters from the simulated dataset.

  5. Check if the retrieved parameters are similar to the ones used for creating the dataset.

Notes on first-order corrections