mgplvm.lpriors.common module

class mgplvm.lpriors.common.ARP(p, manif, kmax=5, ar_phi=None, ar_eta=None, ar_c=None, learn_phi=True, learn_eta=True, learn_c=True, diagonal=True)[source]

Bases: mgplvm.lpriors.common.Lprior

forward(g, batch_idxs=None)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

property msg
name = 'ARP'
property prms
training: bool
class mgplvm.lpriors.common.Brownian(manif, kmax=5, brownian_eta=None, brownian_c=None, fixed_brownian_eta=False, fixed_brownian_c=False)[source]

Bases: mgplvm.lpriors.common.Lprior

forward(g, batch_idxs=None)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

property msg
name = 'Brownian'
property prms
training: bool
class mgplvm.lpriors.common.Gaussian(manif, sigma=1.5)[source]

Bases: mgplvm.lpriors.common.Lprior

forward(g, batch_idxs=None, kmax=5)[source]

g: (n_samples, n_mc, m, d) output: (n_b)

property msg
name = 'gaussian'
property prms
training: bool
class mgplvm.lpriors.common.Lprior(manif)[source]

Bases: mgplvm.base.Module

Base kernel class

abstract property msg
training: bool
class mgplvm.lpriors.common.Null(manif)[source]

Bases: mgplvm.lpriors.common.Lprior

forward(g, batch_idxs=None)[source]

g: (n_b x n_samples x mx x d) output: (n_b)

property msg
name = 'null'
prms()[source]
training: bool
class mgplvm.lpriors.common.Uniform(manif)[source]

Bases: mgplvm.lpriors.common.Lprior

forward(g, batch_idxs=None)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

property msg
name = 'uniform'
prms()[source]
training: bool