Boltzmann sampler.
More...
|
| | __init__ (self, model, td_factory=TreeDecompositionFactory(), lazy=True) |
| | Construct.
|
| |
| | sample (self) |
| | Generate sample.
|
| |
| | resample (self, variables, assignment) |
| | Generate sample.
|
| |
| | samples (self) |
| | Sample generator.
|
| |
| | gen_cluster_tree (self) |
| | Suitable cluster tree.
|
| |
| | __init__ (self, model, td_factory=TreeDecompositionFactory(), lazy=True) |
| | Construct with model and optional td_factory.
|
| |
| | requires_reinitialization (self) |
| |
| | setup_engine (self, *skip_ct=False) |
| | Sets up the constraint model / cluster tree sampling engine.
|
| |
| | evaluate (self) |
| | Evaluates the cluster tree.
|
| |
| | is_consistent (self) |
| |
| | plot_td (self, filename, to="pdf") |
| | Plot the tree decomposition to pdf file filename write to filename to target format, support conversion to "pdf" or "png".
|
| |
| | treewidth (self) |
| | Get tree width.
|
| |
| | gen_cluster_tree (self) |
| | Generate the populated cluster tree td tree decomposition Returns cluster tree.
|
| |
◆ __init__()
| infrared.infrared.BoltzmannSampler.__init__ |
( |
|
self, |
|
|
|
model, |
|
|
|
td_factory = TreeDecompositionFactory(), |
|
|
|
lazy = True |
|
) |
| |
◆ gen_cluster_tree()
| infrared.infrared.BoltzmannSampler.gen_cluster_tree |
( |
|
self | ) |
|
◆ resample()
| infrared.infrared.BoltzmannSampler.resample |
( |
|
self, |
|
|
|
variables, |
|
|
|
assignment |
|
) |
| |
Generate sample.
If the cluster tree was not evaluated (or consistency checked) before,
it will be evaluated once on-demand.
- Returns
- a raw sample
- Note
- raises exception ConsistencyError if the model is inconsistent.
◆ sample()
| infrared.infrared.BoltzmannSampler.sample |
( |
|
self | ) |
|
Generate sample.
If the cluster tree was not evaluated (or consistency checked) before,
it will be evaluated once on-demand.
- Returns
- a raw sample
- Note
- raises exception ConsistencyError if the model is inconsistent.
◆ samples()
| infrared.infrared.BoltzmannSampler.samples |
( |
|
self | ) |
|
◆ _model
| infrared.infrared.BoltzmannSampler._model |
|
protected |
The documentation for this class was generated from the following file: