Parameter
- class glotaran.parameter.parameter.Parameter(label, value=nan, standard_error: float = nan, expression: str | None = None, maximum: float = inf, minimum: float = -inf, non_negative: bool = False, vary: bool = True)[source]
Bases:
_SupportsArray
A parameter for optimization.
Method generated by attrs for class Parameter.
Attributes Summary
Get short label.
Methods Summary
Get the parameter as a dictionary.
Get the parameter as a dictionary.
Create a copy of the
Parameter
.Create a parameter from a list.
Get the parameter value and bounds with expression and non-negative constraints applied.
Get a markdown representation of the parameter.
Set the value from an optimization result and reverses non-negative transformation.
Methods Documentation
- as_list(label_short: bool = False) list[str | float | dict[str, Any]] [source]
Get the parameter as a dictionary.
- classmethod from_list(values: list[Any], *, default_options: dict[str, Any] | None = None) Parameter [source]
Create a parameter from a list.
- get_value_and_bounds_for_optimization() tuple[float, float, float] [source]
Get the parameter value and bounds with expression and non-negative constraints applied.
- markdown(all_parameters: Parameters | None = None, initial_parameters: Parameters | None = None) MarkdownStr [source]
Get a markdown representation of the parameter.
- Parameters:
all_parameters (Parameters | None) – A parameter group containing the whole parameter set (used for expression lookup).
initial_parameters (Parameters | None) – The initial parameter.
- Returns:
The parameter as markdown string.
- Return type: