Skip to content

CLELambdaFlow

CLELambdaFlow(score, vol=1.0, lx=1.0, **kwargs)

Bases: AutonomousModelMixin, Model

CLE flow model with trainable degradation vector.

Parameters:

  • score (callable) –

    Score model called on Xtrain.

  • vol (float, default: 1.0 ) –

    Volume scale used in the CLE correction term.

  • lx (float, default: 1.0 ) –

    Initial value used to initialize lambda_.

  • **kwargs (dict, default: {} ) –

    Forwarded to pfi.base.Model.

Attributes:

  • lambda_ (Parameter or None) –

    Trainable degradation parameter created during init_model.

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.

init_model(X, generator=None)

Initialize network, scales, and trainable lambda_.

Parameters:

  • X (Tensor) –

    Batched input tensor used to initialize the parent model.

  • generator (Generator or None, default: None ) –

    Optional RNG for reproducible weight initialization.

Returns:

is_autonomous()

Return True for autonomous models.

Returns:

  • bool –

    Always True.

is_gradient()

Return False for non-gradient models.

Returns:

  • bool –

    Always False.