fusionlab.params.LearnableK¶
- class fusionlab.params.LearnableK[source]¶
Bases:
BaseLearnableLearnable Hydraulic Conductivity (K).
Indicates that the PINN’s hydraulic conductivity \(K\) should be learned (trainable) if TensorFlow is available; otherwise behaves as a fixed NumPy‐based parameter. We learn \(\log(K)\) to ensure \(K > 0\). The user supplies an initial_value, and the object initializes:
\[\log K \;=\; \log( ext{initial\_value}).\]Ensures positivity via log-space.
See also
BaseLearnableParamExamples
>>> k = LearnableK(1.2) >>> :math:`K = k.get_value()`
- __init__(initial_value=1.0, log_transform=True, name=None, trainable=True, **kws)[source]¶
- Parameters:
initial_value (float)
log_transform (bool)
name (str | None)
trainable (bool)
Methods
__init__([initial_value, log_transform, ...])from_config(config)Re-instantiate from
get_config().get_config()Return a JSON-serialisable dict for tf.keras.
Return \(K = \exp(log\_K)\).