otf.optim.gradient.gradient_computer
Classes:
| Name | Description |
|---|---|
GradientComputer |
Base class for objects that compute gradients of the assimilation error. |
GradientComputer
Base class for objects that compute gradients of the assimilation error.
Subclasses implement compute_gradient(observed_true, assimilated).
Create a GradientComputer bound to system.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
BaseSystem
|
|
required |
Methods:
| Name | Description |
|---|---|
set_weight |
Weight the error using a (positive definite) matrix. |
Source code in src/otf/optim/gradient/gradient_computer.py
set_weight
Weight the error using a (positive definite) matrix.
Use this matrix to weight the error (defined as the two-norm of the difference between the data assimilated system state and the observed portion of true system state). This accordingly weights the derivative of the error with respect to the unknown parameters of the data assimilated system.
If assimilating a system with noisy measurements, it is common to use the inverse of the covariance matrix as the weight.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
weight
|
jndarray | None
|
Square array. Each dimension should be equal to the number of
observed variables. Pass |
required |