geoprior.params.BaseFixed#
- class geoprior.params.BaseFixed(value, name, log_transform=False, non_negative=True, **kws)[source]#
Bases:
ABCAbstract base for fixed physical parameters.
- Parameters:
value (
float) – Fixed numeric value for the parameter.name (
str) – Unique identifier for the variable.log_transform (
bool, optional) – If True, store in log-space for positivity constraint and apply exp() when retrieving value, by default False.non_negative (
bool, optional) – If True, ensures value cannot be negative, by default True. Only enforced when log_transform=False.
- Variables:
Examples
>>> param = FixedGammaW(value=9810.0) >>> value = param.get_value()
Methods
__init__(value, name[, log_transform, ...])from_config(config)Re-instantiate from configuration dict.
Return a JSON-serialisable dict for tf.keras serialization.
Retrieve the fixed parameter value.
- get_value()[source]#
Retrieve the fixed parameter value.
- Returns:
The parameter value, with exp() applied if log_transform=True.
- Return type:
Union[Tensor,float]