OptimizationGroup
- class glotaran.optimization.optimization_group.OptimizationGroup(scheme: glotaran.project.scheme.Scheme, dataset_group: glotaran.model.dataset_group.DatasetGroup)[source]
Bases:
object
Create OptimizationGroup instance from a scheme (
Scheme
)- Args:
- scheme (Scheme): An instance of
Scheme
which defines your model, parameters, and data
- scheme (Scheme): An instance of
Attributes Summary
Property providing access to the used model
Methods Summary
Resets all results and DatasetModels.
Methods Documentation
- create_result_data(parameter_history: ParameterHistory = None, copy: bool = True, success: bool = True, add_svd: bool = True) dict[str, xr.Dataset] [source]
- create_result_dataset(label: str, copy: bool = True, add_svd: bool = True) xarray.core.dataset.Dataset [source]
- property dataset_models: dict[str, DatasetModel]
- property full_penalty: numpy.ndarray
- property model: glotaran.model.model.Model
Property providing access to the used model
The model is a subclass of
glotaran.model.Model
decorated with the @model decoratorglotaran.model.model_decorator.model
For an example implementation see e.g.glotaran.builtin.models.kinetic_spectrum
- Returns:
- Model: A subclass of
glotaran.model.Model
The model must be decorated with the @model decorator
glotaran.model.model_decorator.model
- Model: A subclass of
- property parameters: glotaran.parameter.parameter_group.ParameterGroup