OUFlow
OUFlow(score, D=0.5, lx=0)
Bases: AutonomousModelMixin, Model
Ornstein-Uhlenbeck flow model with linear drift matrix.
Parameters:
-
score(callable) –Score model called on
Xtrain. -
D(float or Tensor, default:0.5) –Diffusion matrix or scalar diffusion scale.
-
lx(float, default:0) –Linear degradation coefficient.
dim_output()
Return network output dimension.
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.