CUQIpy 1.3.0.post0.dev292__tar.gz → 1.3.0.post0.dev298__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of CUQIpy might be problematic. Click here for more details.
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/PKG-INFO +1 -1
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/PKG-INFO +1 -1
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/_version.py +3 -3
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_joint_distribution.py +1 -1
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/_recommender.py +23 -7
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_gibbs.py +13 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/SOURCES.txt +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/dependency_links.txt +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/requires.txt +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/top_level.txt +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/LICENSE +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/README.md +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/_messages.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/array/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/array/_array.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/config.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/_data.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/astronaut.npz +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/camera.npz +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/cat.npz +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/cookie.png +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/data/satellite.mat +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/density/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/density/_density.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/diagnostics.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_beta.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_cauchy.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_cmrf.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_custom.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_distribution.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_gamma.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_gaussian.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_gmrf.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_inverse_gamma.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_laplace.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_lmrf.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_lognormal.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_modifiedhalfnormal.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_normal.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_posterior.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_smoothed_laplace.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_truncated_normal.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_uniform.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/_ast.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/_orderedset.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/_randomvariable.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/geometry/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/geometry/_productgeometry.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_conjugate.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_conjugate_approx.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_cwmh.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_direct.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_hmc.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_langevin_algorithm.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_laplace_approximation.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_mh.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_pcn.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_rto.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_sampler.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/geometry/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/geometry/_geometry.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_regularizedGMRF.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_regularizedGaussian.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_regularizedUnboundedUniform.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_restorator.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/likelihood/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/likelihood/_likelihood.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/model/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/model/_model.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/operator/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/operator/_operator.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/pde/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/pde/_pde.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/problem/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/problem/_problem.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_conjugate.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_conjugate_approx.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_cwmh.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_gibbs.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_hmc.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_langevin_algorithm.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_laplace_approximation.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_mh.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_pcn.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_rto.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_sampler.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/samples/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/samples/_samples.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/solver/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/solver/_solver.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/testproblem/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/testproblem/_testproblem.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/utilities/__init__.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/utilities/_get_python_variable_name.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/utilities/_utilities.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/pyproject.toml +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/requirements.txt +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/setup.cfg +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/setup.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_MRFs.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_abstract_distribution_density.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_bayesian_inversion.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_density.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_distribution.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_distributions_shape.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_geometry.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_implicit_priors.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_joint_distribution.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_likelihood.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_model.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_pde.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_posterior.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_problem.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_sampler.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_samples.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_solver.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_testproblem.py +0 -0
- {cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_utilities.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: CUQIpy
|
|
3
|
-
Version: 1.3.0.post0.
|
|
3
|
+
Version: 1.3.0.post0.dev298
|
|
4
4
|
Summary: Computational Uncertainty Quantification for Inverse problems in Python
|
|
5
5
|
Maintainer-email: "Nicolai A. B. Riis" <nabr@dtu.dk>, "Jakob S. Jørgensen" <jakj@dtu.dk>, "Amal M. Alghamdi" <amaal@dtu.dk>, Chao Zhang <chaz@dtu.dk>
|
|
6
6
|
License: Apache License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: CUQIpy
|
|
3
|
-
Version: 1.3.0.post0.
|
|
3
|
+
Version: 1.3.0.post0.dev298
|
|
4
4
|
Summary: Computational Uncertainty Quantification for Inverse problems in Python
|
|
5
5
|
Maintainer-email: "Nicolai A. B. Riis" <nabr@dtu.dk>, "Jakob S. Jørgensen" <jakj@dtu.dk>, "Amal M. Alghamdi" <amaal@dtu.dk>, Chao Zhang <chaz@dtu.dk>
|
|
6
6
|
License: Apache License
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-
|
|
11
|
+
"date": "2025-09-04T09:48:37+0300",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.3.0.post0.
|
|
14
|
+
"full-revisionid": "a0d227d0981362a09d24dc976ad65459ba8bf798",
|
|
15
|
+
"version": "1.3.0.post0.dev298"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -17,6 +17,24 @@ class SamplerRecommender(object):
|
|
|
17
17
|
|
|
18
18
|
exceptions: list[cuqi.experimental.mcmc.Sampler], *optional*
|
|
19
19
|
Samplers not to be recommended.
|
|
20
|
+
|
|
21
|
+
Example
|
|
22
|
+
-------
|
|
23
|
+
.. code-block:: python
|
|
24
|
+
import numpy as np
|
|
25
|
+
from cuqi.distribution import Gamma, Gaussian, JointDistribution
|
|
26
|
+
from cuqi.experimental import SamplerRecommender
|
|
27
|
+
|
|
28
|
+
x = Gamma(1, 1)
|
|
29
|
+
y = Gaussian(np.zeros(2), cov=lambda x: 1 / x)
|
|
30
|
+
target = JointDistribution(y, x)(y=1)
|
|
31
|
+
|
|
32
|
+
recommender = SamplerRecommender(target)
|
|
33
|
+
valid_samplers = recommender.valid_samplers()
|
|
34
|
+
recommended_sampler = recommender.recommend()
|
|
35
|
+
print("Valid samplers:", valid_samplers)
|
|
36
|
+
print("Recommended sampler:\n", recommended_sampler)
|
|
37
|
+
|
|
20
38
|
"""
|
|
21
39
|
|
|
22
40
|
def __init__(self, target:cuqi.density.Density, exceptions = []):
|
|
@@ -28,7 +46,7 @@ class SamplerRecommender(object):
|
|
|
28
46
|
def target(self) -> cuqi.density.Density:
|
|
29
47
|
""" Return the target Distribution. """
|
|
30
48
|
return self._target
|
|
31
|
-
|
|
49
|
+
|
|
32
50
|
@target.setter
|
|
33
51
|
def target(self, value:cuqi.density.Density):
|
|
34
52
|
""" Set the target Distribution. Runs validation of the target. """
|
|
@@ -73,7 +91,7 @@ class SamplerRecommender(object):
|
|
|
73
91
|
def ordering(self):
|
|
74
92
|
""" Returns the ordered list of recommendation rules used by the recommender. """
|
|
75
93
|
return self._ordering
|
|
76
|
-
|
|
94
|
+
|
|
77
95
|
def valid_samplers(self, as_string = True):
|
|
78
96
|
"""
|
|
79
97
|
Finds all possible samplers that can be used for sampling from the target distribution.
|
|
@@ -101,7 +119,6 @@ class SamplerRecommender(object):
|
|
|
101
119
|
valid_samplers += [cuqi.experimental.mcmc.HybridGibbs.__name__ if as_string else cuqi.experimental.mcmc.HybridGibbs]
|
|
102
120
|
|
|
103
121
|
return valid_samplers
|
|
104
|
-
|
|
105
122
|
|
|
106
123
|
def valid_HybridGibbs_sampling_strategy(self, as_string = True):
|
|
107
124
|
"""
|
|
@@ -131,11 +148,10 @@ class SamplerRecommender(object):
|
|
|
131
148
|
samplers = recommender.valid_samplers(as_string)
|
|
132
149
|
if len(samplers) == 0:
|
|
133
150
|
return None
|
|
134
|
-
|
|
151
|
+
|
|
135
152
|
valid_samplers[par_name] = samplers
|
|
136
153
|
|
|
137
154
|
return valid_samplers
|
|
138
|
-
|
|
139
155
|
|
|
140
156
|
def recommend(self, as_string = False):
|
|
141
157
|
"""
|
|
@@ -194,7 +210,7 @@ class SamplerRecommender(object):
|
|
|
194
210
|
|
|
195
211
|
if sampler is None:
|
|
196
212
|
return None
|
|
197
|
-
|
|
213
|
+
|
|
198
214
|
suggested_samplers[par_name] = sampler
|
|
199
215
|
|
|
200
|
-
return suggested_samplers
|
|
216
|
+
return suggested_samplers
|
|
@@ -359,3 +359,16 @@ class HybridGibbs:
|
|
|
359
359
|
""" Store current samples at index i of samples dict """
|
|
360
360
|
for par_name in self.par_names:
|
|
361
361
|
self.samples[par_name].append(self.current_samples[par_name])
|
|
362
|
+
|
|
363
|
+
def __repr__(self):
|
|
364
|
+
""" Return a string representation of the sampler. """
|
|
365
|
+
msg = f"Sampler: {self.__class__.__name__} \n"
|
|
366
|
+
if self.target is None:
|
|
367
|
+
msg += f" Target: None \n"
|
|
368
|
+
else:
|
|
369
|
+
msg += f" Target: \n \t {self.target} \n\n"
|
|
370
|
+
|
|
371
|
+
for key, value in zip(self.samplers.keys(), self.samplers.values()):
|
|
372
|
+
msg += f" Variable '{key}' with {value} \n"
|
|
373
|
+
|
|
374
|
+
return msg
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/CUQIpy.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_modifiedhalfnormal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_smoothed_laplace.py
RENAMED
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/distribution/_truncated_normal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/_orderedset.py
RENAMED
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/algebra/_randomvariable.py
RENAMED
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/geometry/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_conjugate.py
RENAMED
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/experimental/mcmc/_conjugate_approx.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_regularizedGMRF.py
RENAMED
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/implicitprior/_regularizedGaussian.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/sampler/_laplace_approximation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/cuqi/utilities/_get_python_variable_name.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cuqipy-1.3.0.post0.dev292 → cuqipy-1.3.0.post0.dev298}/tests/test_abstract_distribution_density.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|