OUScore
OUScore(m0, S0, D)
Bases: AutonomousModelMixin, Model
Analytical score model for Ornstein-Uhlenbeck dynamics.
Parameters:
-
m0((Tensor, shape(Ndim))) –Initial mean.
-
S0((Tensor, shape(Ndim, Ndim))) –Initial covariance.
-
D((Tensor, shape(Ndim, Ndim))) –Diffusion matrix.
Attributes:
-
Ndim_(int) –Spatial dimension inferred from
m0at construction time.
dim_output()
Return output dimension of the constant matrix network.
Returns:
-
int–Spatial output dimension.
dim_spatial()
Return number of spatial dimension of the wrapped network.
Returns:
-
int–Number of spatial dimension in net_ (by definition the first dimensions).
evaluate_net(x)
Evaluate network with dimension selection, scaling, and transform.
Parameters:
-
x(Tensor) –Full input tensor including spatial coordinates and, by convention, time in the last coordinate.
Returns:
-
Tensor–Final model output after preprocessing and postprocessing.
is_autonomous()
Return True for autonomous models.
Returns:
-
bool–Always
True.
is_gradient()
Return False for non-gradient models.
Returns:
-
bool–Always
False.