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
Moduleinstance 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
Moduleinstance 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- property msg
- name = 'gaussian'
- property prms
- training: bool
- class mgplvm.lpriors.common.Lprior(manif)[source]
Bases:
mgplvm.base.ModuleBase kernel class
- abstract property msg
- training: bool
- class mgplvm.lpriors.common.Null(manif)[source]
Bases:
mgplvm.lpriors.common.Lprior- property msg
- name = 'null'
- 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
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- property msg
- name = 'uniform'
- training: bool