pyrtid.inverse.eval_model_loss_ls#
- pyrtid.inverse.eval_model_loss_ls(model: ForwardModel, observables: Union[Observable, Sequence[Observable]], max_obs_time: Optional[float] = None) float[source]#
Return the least-square loss function of the model for the given observations.
- Parameters
model (ForwardModel) – The forward model from which to read the simulated values.
observables (Observables) – Sequence of observable instances.
max_obs_time (Optional[float], optional) – Maximum time for which to consider an observation value, by default None
- Returns
The objective function.
- Return type