DatasetGroup
- class glotaran.model.dataset_group.DatasetGroup(residual_function: Literal['variable_projection', 'non_negative_least_squares'], link_clp: bool | None, model: Model, parameters: Parameters | None = None, dataset_models: dict[str, DatasetModel] = _Nothing.NOTHING)[source]
Bases:
object
A dataset group for optimization.
Method generated by attrs for class DatasetGroup.
Attributes Summary
The residual function to use.
Whether to link the clp parameter.
Methods Summary
Check if the group is linkable.
Set the group parameters.
Methods Documentation
- dataset_models: dict[str, DatasetModel]
- is_linkable(parameters: Parameters, data: Mapping[str, xr.Dataset]) bool [source]
Check if the group is linkable.
- Parameters:
parameters (Parameters) – A parameter set parameters.
data (Mapping[str, xr.Dataset]) – A the data to link.
- Return type:
- parameters: Parameters | None
- residual_function: Literal['variable_projection', 'non_negative_least_squares']
The residual function to use.
- set_parameters(parameters: Parameters)[source]
Set the group parameters.
- Parameters:
parameters (Parameters) – The parameters.