CUQIpy 1.2.0.post0.dev245__py3-none-any.whl → 1.2.0.post0.dev249__py3-none-any.whl
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.2.0.post0.dev245.dist-info → CUQIpy-1.2.0.post0.dev249.dist-info}/METADATA +1 -1
- {CUQIpy-1.2.0.post0.dev245.dist-info → CUQIpy-1.2.0.post0.dev249.dist-info}/RECORD +7 -7
- cuqi/_version.py +3 -3
- cuqi/experimental/mcmc/_sampler.py +13 -10
- {CUQIpy-1.2.0.post0.dev245.dist-info → CUQIpy-1.2.0.post0.dev249.dist-info}/LICENSE +0 -0
- {CUQIpy-1.2.0.post0.dev245.dist-info → CUQIpy-1.2.0.post0.dev249.dist-info}/WHEEL +0 -0
- {CUQIpy-1.2.0.post0.dev245.dist-info → CUQIpy-1.2.0.post0.dev249.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: CUQIpy
|
|
3
|
-
Version: 1.2.0.post0.
|
|
3
|
+
Version: 1.2.0.post0.dev249
|
|
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
|
cuqi/__init__.py,sha256=LsGilhl-hBLEn6Glt8S_l0OJzAA1sKit_rui8h-D-p0,488
|
|
2
2
|
cuqi/_messages.py,sha256=fzEBrZT2kbmfecBBPm7spVu7yHdxGARQB4QzXhJbCJ0,415
|
|
3
|
-
cuqi/_version.py,sha256=
|
|
3
|
+
cuqi/_version.py,sha256=IxGCnC46Ig0qfI2XY-ax_y9TjKEOHRMCAi6GCXItz30,510
|
|
4
4
|
cuqi/config.py,sha256=wcYvz19wkeKW2EKCGIKJiTpWt5kdaxyt4imyRkvtTRA,526
|
|
5
5
|
cuqi/diagnostics.py,sha256=5OrbJeqpynqRXOe5MtOKKhe7EAVdOEpHIqHnlMW9G_c,3029
|
|
6
6
|
cuqi/array/__init__.py,sha256=-EeiaiWGNsE3twRS4dD814BIlfxEsNkTCZUc5gjOXb0,30
|
|
@@ -47,7 +47,7 @@ cuqi/experimental/mcmc/_laplace_approximation.py,sha256=rdiE3cMQFq6FLQcOQwPpuGIx
|
|
|
47
47
|
cuqi/experimental/mcmc/_mh.py,sha256=MXo0ahXP4KGFkaY4HtvcBE-TMQzsMlTmLKzSvpz7drU,2941
|
|
48
48
|
cuqi/experimental/mcmc/_pcn.py,sha256=wqJBZLuRFSwxihaI53tumAg6AWVuceLMOmXssTetd1A,3374
|
|
49
49
|
cuqi/experimental/mcmc/_rto.py,sha256=Ub5rDe_yfkzxqcnimEArXWVb3twuGUJmvxEQNPKQWfU,10061
|
|
50
|
-
cuqi/experimental/mcmc/_sampler.py,sha256=
|
|
50
|
+
cuqi/experimental/mcmc/_sampler.py,sha256=BZHnpB6s-YSddd46wQSds0vNF61RA58Nc9ZU05WngdU,20184
|
|
51
51
|
cuqi/experimental/mcmc/_utilities.py,sha256=kUzHbhIS3HYZRbneNBK41IogUYX5dS_bJxqEGm7TQBI,525
|
|
52
52
|
cuqi/geometry/__init__.py,sha256=Tz1WGzZBY-QGH3c0GiyKm9XHN8MGGcnU6TUHLZkzB3o,842
|
|
53
53
|
cuqi/geometry/_geometry.py,sha256=SDRZdiN2CIuS591lXxqgFoPWPIpwY-MHk75116QvdYY,46901
|
|
@@ -87,8 +87,8 @@ cuqi/testproblem/_testproblem.py,sha256=x769LwwRdJdzIiZkcQUGb_5-vynNTNALXWKato7s
|
|
|
87
87
|
cuqi/utilities/__init__.py,sha256=H7xpJe2UinjZftKvE2JuXtTi4DqtkR6uIezStAXwfGg,428
|
|
88
88
|
cuqi/utilities/_get_python_variable_name.py,sha256=QwlBVj2koJRA8s8pWd554p7-ElcI7HUwY32HknaR92E,1827
|
|
89
89
|
cuqi/utilities/_utilities.py,sha256=Jc4knn80vLoA7kgw9FzXwKVFGaNBOXiA9kgvltZU3Ao,11777
|
|
90
|
-
CUQIpy-1.2.0.post0.
|
|
91
|
-
CUQIpy-1.2.0.post0.
|
|
92
|
-
CUQIpy-1.2.0.post0.
|
|
93
|
-
CUQIpy-1.2.0.post0.
|
|
94
|
-
CUQIpy-1.2.0.post0.
|
|
90
|
+
CUQIpy-1.2.0.post0.dev249.dist-info/LICENSE,sha256=kJWRPrtRoQoZGXyyvu50Uc91X6_0XRaVfT0YZssicys,10799
|
|
91
|
+
CUQIpy-1.2.0.post0.dev249.dist-info/METADATA,sha256=YyDb86pbnTvrc9l540tvlbiEch8dwRg3VMQJ4yZ6Z4s,18496
|
|
92
|
+
CUQIpy-1.2.0.post0.dev249.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
93
|
+
CUQIpy-1.2.0.post0.dev249.dist-info/top_level.txt,sha256=AgmgMc6TKfPPqbjV0kvAoCBN334i_Lwwojc7HE3ZwD0,5
|
|
94
|
+
CUQIpy-1.2.0.post0.dev249.dist-info/RECORD,,
|
cuqi/_version.py
CHANGED
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-11-
|
|
11
|
+
"date": "2024-11-11T15:45:34+0300",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.2.0.post0.
|
|
14
|
+
"full-revisionid": "cd8c23afac208745ddf8f4268bf8ea9abd947d58",
|
|
15
|
+
"version": "1.2.0.post0.dev249"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -396,16 +396,19 @@ class Sampler(ABC):
|
|
|
396
396
|
""" Return a string representation of the sampler. """
|
|
397
397
|
if self.target is None:
|
|
398
398
|
return f"Sampler: {self.__class__.__name__} \n Target: None"
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
399
|
+
else:
|
|
400
|
+
msg = f"Sampler: {self.__class__.__name__} \n Target: \n \t {self.target} "
|
|
401
|
+
|
|
402
|
+
if self._is_initialized:
|
|
403
|
+
state = self.get_state()
|
|
404
|
+
msg += f"\n Current state: \n"
|
|
405
|
+
# Sort keys alphabetically
|
|
406
|
+
keys = sorted(state['state'].keys())
|
|
407
|
+
# Put _ in the end
|
|
408
|
+
keys = [key for key in keys if key[0] != '_'] + [key for key in keys if key[0] == '_']
|
|
409
|
+
for key in keys:
|
|
410
|
+
value = state['state'][key]
|
|
411
|
+
msg += f"\t {key}: {value} \n"
|
|
409
412
|
return msg
|
|
410
413
|
|
|
411
414
|
class ProposalBasedSampler(Sampler, ABC):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|