RegularizedVelocityRatioMixIn#

Mixin class for regularized velocity ratio operations.

This class provides methods for computing regularized velocity ratio loss and incorporating it into the optimization step.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn._L2Norm#

Instance of L2Norm utility for computing L2 norm.

Type:

L2Norm

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__init__()#

Initialize the RegularizedVelocityRatioMixIn object.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.forward()#

Perform the forward step, integrating in latent space.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.velocity_ratio_loss_transform()#

Property to get the velocity ratio loss transformation method.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn._compute_magnitude_f()#

Compute the magnitude of drift.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn._compute_magnitude_g()#

Compute the magnitude of diffusion.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn._velocity_ratio_loss()#

Compute the velocity ratio loss.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn._dynamic_enforcement()#

Apply dynamic enforcement strategy.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.step()#

Perform a single optimization step incorporating velocity ratio loss.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__delattr__(self, name, /)#

Implement delattr(self, name).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__dir__(self, /)#

Default dir() implementation.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__eq__(self, value, /)#

Return self==value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__format__(self, format_spec, /)#

Default object formatter.

Return str(self) if format_spec is empty. Raise TypeError otherwise.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__ge__(self, value, /)#

Return self>=value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__getattribute__(self, name, /)#

Return getattr(self, name).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__getstate__(self, /)#

Helper for pickle.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__gt__(self, value, /)#

Return self>value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__hash__(self, /)#

Return hash(self).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__init_subclass__()#

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__le__(self, value, /)#

Return self<=value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__lt__(self, value, /)#

Return self<value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__ne__(self, value, /)#

Return self!=value.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__new__(*args, **kwargs)#

Create and return a new object. See help(type) for accurate signature.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__reduce__(self, /)#

Helper for pickle.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__reduce_ex__(self, protocol, /)#

Helper for pickle.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__repr__(self, /)#

Return repr(self).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__setattr__(self, name, value, /)#

Implement setattr(self, name, value).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__sizeof__(self, /)#

Size of object in memory, in bytes.

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__str__(self, /)#

Return str(self).

scdiffeq.core.lightning_models.mix_ins._regularized_velocity_ratio_mix_in.RegularizedVelocityRatioMixIn.__subclasshook__()#

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).