Reparameterize a model class

Todo

Explain how to create a reference model state for a custom model class

To start, you need a Model class. There are two options.

  • Create your own model as described here.

  • Use an existing model and reparameterize.

Parameterization is done using the function ‘set_reference()’. To copy the VanOsta2023 build with your own model parameterization, create a class derived from VanOsta2023. This can be done using the following code.

python
import circadapt
from circadapt.model.VanOsta2023 import VanOsta2023

class MyOwnModel(VanOsta2023):
    def set_reference(self):
        super().set_reference()

        # change model parameters here