jexplore.sampling.base#

This module provides the definitions of the base jexplore.sampling.state.Sampling class.

Classes#

Sampling

Markov sampling defining parameters.

Module Contents#

class Sampling[Tspace: jexplore.sampling.space.Space](nchain, dim=None, space=None)[source]#

Markov sampling defining parameters.

In this base class version the parameter are the dimension of the target space and the number of chains. Child classes may specialize to specific type of markov sampling (e.g. jexplore.sampling.mh.SamplingMH)

Parameters:
  • dim (int | None) – dimension of the target space.

  • nchains – number of chains.

  • space (Tspace | None) – jexplore.sampling.space object describing the target space.

  • nchain (int)

the state will then be defined by a (nchain, dim) point

dim: int#

Dimension of the target space

nchain: int#

Number of chains

space: Tspace | jexplore.sampling.space.Box#

Target space.

to_backend()[source]#

Save the attributes of the object in backend format.

Return type:

dict