OptimizationGroup
- class glotaran.optimization.optimization_group.OptimizationGroup(scheme: Scheme, dataset_group: DatasetGroup)[source]
Bases:
object
A class to optimize a dataset group.
Initialize an optimization group for a dataset group.
- Parameters:
scheme (Scheme) – The optimization scheme.
dataset_group (DatasetGroup) – The dataset group.
Attributes Summary
Return number of conditionally linear parameters.
Methods Summary
Add the SVD of a data matrix to a dataset.
Add weight to result dataset if dataset is weighted.
Calculate the optimization group data.
Create resulting datasets.
Get additional penalties.
Get the full penalty.
Methods Documentation
- static add_svd_data(name: str, dataset: Dataset, lsv_dim: str, rsv_dim: str)[source]
Add the SVD of a data matrix to a dataset.
- add_weight_to_result_data(dataset_label: str, result_dataset: Dataset)[source]
Add weight to result dataset if dataset is weighted.
- Parameters:
dataset_label (str) – The label of the data.
result_dataset (xr.Dataset) – The label of the data.
- calculate(parameters: Parameters)[source]
Calculate the optimization group data.
- Parameters:
parameters (Parameters) – The parameters.