Policies.Posterior.Posterior module

Base class for a posterior. Cf. http://chercheurs.lille.inria.fr/ekaufman/NIPS13 Fig.1 for a list of posteriors.

class Policies.Posterior.Posterior.Posterior(*args, **kwargs)[source]

Bases: object

Manipulate posteriors experiments.

__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

reset(*args, **kwargs)[source]

Reset posterior, new experiment.

sample()[source]

Sample from the posterior.

quantile(p)[source]

p quantile from the posterior.

mean()[source]

Mean of the posterior.

forget(obs)[source]

Forget last observation (never used).

update(obs)[source]

Update posterior with this observation.

__dict__ = mappingproxy({'__module__': 'Policies.Posterior.Posterior', '__doc__': ' Manipulate posteriors experiments.', '__init__': <function Posterior.__init__>, 'reset': <function Posterior.reset>, 'sample': <function Posterior.sample>, 'quantile': <function Posterior.quantile>, 'mean': <function Posterior.mean>, 'forget': <function Posterior.forget>, 'update': <function Posterior.update>, '__dict__': <attribute '__dict__' of 'Posterior' objects>, '__weakref__': <attribute '__weakref__' of 'Posterior' objects>})
__module__ = 'Policies.Posterior.Posterior'
__weakref__

list of weak references to the object (if defined)