phlower.settings.RolloutSetting¶
- class phlower.settings.RolloutSetting(*, variables, n_steps=None)[source]¶
Bases:
BaseModelPredict a time series by applying the model step by step.
At every step, the increment predicted by the model is added to the state in the unit of the data before scaling, and the new state is the input of the next step. The model sees one time step of the inputs at a time, so it must be a one-step model.
Methods
check_variables()Attributes
model_computed_fieldsConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
Pairs of state and increment, all updated at every step.
Number of steps.
- Parameters:
variables (Annotated[list[RolloutVariableSetting], MinLen(min_length=1)])
n_steps (Annotated[int | None, Gt(gt=0)])
- model_config = {'extra': 'forbid', 'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- n_steps: int | None¶
Number of steps. Defaults to None, which means the time length of the states.
- variables: list[RolloutVariableSetting]¶
Pairs of state and increment, all updated at every step.