jcmoptimizer 3.0.7__tar.gz → 3.0.8__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.
Files changed (23) hide show
  1. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/PKG-INFO +1 -1
  2. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/drivers/active_learning_drivers.py +68 -52
  3. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/requestor.py +1 -1
  4. jcmoptimizer-3.0.8/jcmoptimizer/version.py +1 -0
  5. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer.egg-info/PKG-INFO +1 -1
  6. jcmoptimizer-3.0.7/jcmoptimizer/version.py +0 -1
  7. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/LICENSE +0 -0
  8. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/README.md +0 -0
  9. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/__init__.py +0 -0
  10. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/benchmark.py +0 -0
  11. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/client.py +0 -0
  12. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/drivers/__init__.py +0 -0
  13. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/drivers/driver.py +0 -0
  14. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/drivers/third_party_drivers.py +0 -0
  15. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/objects.py +0 -0
  16. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/server.py +0 -0
  17. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer/study.py +0 -0
  18. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer.egg-info/SOURCES.txt +0 -0
  19. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer.egg-info/dependency_links.txt +0 -0
  20. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer.egg-info/requires.txt +0 -0
  21. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/jcmoptimizer.egg-info/top_level.txt +0 -0
  22. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/pyproject.toml +0 -0
  23. {jcmoptimizer-3.0.7 → jcmoptimizer-3.0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jcmoptimizer
3
- Version: 3.0.7
3
+ Version: 3.0.8
4
4
  Summary: The JCMoptimizer interface for Python
5
5
  Author-email: Philipp Schneider <philipp.schneider@jcmwave.com>
6
6
  License-Expression: MIT
@@ -131,9 +131,10 @@ class ActiveLearningDriver(Driver):
131
131
  and a tensor of shape ``(num_samples, num_points, output_dim)``
132
132
 
133
133
  min_dist: In order to speed up the prediction, one can use a
134
- sparsified version of the base surrogates where sampling
135
- with a distance smaller than min_dist (in terms of the length
136
- scales of the surrogate) are neglected.
134
+ sparsified version of the base surrogates where observations
135
+ used for training the surrogate are neglected if their distance
136
+ is smaller than min_dist (in terms of the length scales of the
137
+ surrogate).
137
138
  quantiles: A list with quantiles. If not specified, the quantiles
138
139
  [0.16,0.5,0.84] are used.
139
140
  num_samples: Number of samples used for posteriors that have
@@ -177,9 +178,10 @@ class ActiveLearningDriver(Driver):
177
178
  num_samples: Number of initial start samples for optimization
178
179
  (default: automatic determination)
179
180
  min_dist: In order to speed up the prediction, one can use a
180
- sparsified version of the base surrogates where sampling
181
- with a distance smaller than min_dist (in terms of the length
182
- scales of the surrogate) are neglected.
181
+ sparsified version of the base surrogates where observations
182
+ used for training the surrogate are neglected if their distance
183
+ is smaller than min_dist (in terms of the length scales of the
184
+ surrogate).
183
185
  """
184
186
  self._run_task(
185
187
  "optimize hyperparameters",
@@ -229,9 +231,10 @@ class ActiveLearningDriver(Driver):
229
231
  delta: step size parameter used for approximating second
230
232
  derivatives.
231
233
  min_dist: In order to speed up the prediction, one can use a
232
- sparsified version of the base surrogates where sampling
233
- with a distance smaller than min_dist (in terms of the length
234
- scales of the surrogate) are neglected.
234
+ sparsified version of the base surrogates where observations
235
+ used for training the surrogate are neglected if their distance
236
+ is smaller than min_dist (in terms of the length scales of the
237
+ surrogate).
235
238
 
236
239
  Returns: A dictionary with information about local minima
237
240
  with lists of object values, uncertainties of the objective values,
@@ -302,9 +305,10 @@ class ActiveLearningDriver(Driver):
302
305
  max_samples: The Monte Carlo integration is stopped when the
303
306
  number of evaluated samples equals or exceeds the given value.
304
307
  min_dist: In order to speed up the prediction, one can use a
305
- sparsified version of the base surrogates where sampling
306
- with a distance smaller than min_dist (in terms of the length
307
- scales of the surrogate) are neglected.
308
+ sparsified version of the base surrogates where observations
309
+ used for training the surrogate are neglected if their distance
310
+ is smaller than min_dist (in terms of the length scales of the
311
+ surrogate).
308
312
 
309
313
  Returns: A dictionary with the entries
310
314
 
@@ -371,9 +375,10 @@ class ActiveLearningDriver(Driver):
371
375
  max_samples: The Monte Carlo integration is stopped when the
372
376
  number of evaluated samples equals or exceeds the given value.
373
377
  min_dist: In order to speed up the prediction, one can use a
374
- sparsified version of the base surrogates where sampling
375
- with a distance smaller than min_dist (in terms of the length
376
- scales of the surrogate) are neglected.
378
+ sparsified version of the base surrogates where observations
379
+ used for training the surrogate are neglected if their distance
380
+ is smaller than min_dist (in terms of the length scales of the
381
+ surrogate).
377
382
 
378
383
  Returns: A dictionary with the entries
379
384
 
@@ -458,7 +463,7 @@ class ActiveLearningDriver(Driver):
458
463
  correlation vanishes at a correlation time :math:`\tau`, :math:`N_{\rm ind} =
459
464
  N/\tau` of all :math:`N` MCMC samples are independent. Note, that
460
465
  :math:`\tau` can only be estimated and thus the relative Monte-Carlo
461
- integration error :math:`\delta_{\rm rel}=\tau/\sqrt{N}` can be under or
466
+ integration error :math:`\delta_{\rm rel}=\sqrt{\tau/N}` can be under or
462
467
  overestimated.
463
468
 
464
469
  Args:
@@ -483,9 +488,10 @@ class ActiveLearningDriver(Driver):
483
488
  estimate. E.g. ``max_sigma_dist=3.0`` means that only the 99.7%
484
489
  probability region of each parameter is sampled.
485
490
  min_dist: In order to speed up the prediction, one can use a
486
- sparsified version of the base surrogates where sampling
487
- with a distance smaller than min_dist (in terms of the length
488
- scales of the surrogate) are neglected.
491
+ sparsified version of the base surrogates where observations
492
+ used for training the surrogate are neglected if their distance
493
+ is smaller than min_dist (in terms of the length scales of the
494
+ surrogate).
489
495
 
490
496
  Returns: A dictionary with the following entries:
491
497
 
@@ -600,9 +606,10 @@ class SingleGPSingleVariable(SpecializedActiveLearning):
600
606
  num_samples: Number of initial start samples for optimization
601
607
  (default: automatic determination)
602
608
  min_dist: In order to speed up the prediction, one can use a
603
- sparsified version of the base surrogates where sampling
604
- with a distance smaller than min_dist (in terms of the length
605
- scales of the surrogate) are neglected.
609
+ sparsified version of the base surrogates where observations
610
+ used for training the surrogate are neglected if their distance
611
+ is smaller than min_dist (in terms of the length scales of the
612
+ surrogate).
606
613
  """
607
614
  self._ald.optimize_hyperparameters("driver.surrogates.0", num_samples, min_dist)
608
615
 
@@ -641,9 +648,10 @@ class SingleGPSingleVariable(SpecializedActiveLearning):
641
648
  derivatives. (default: 0.1)
642
649
  ftol: Precision goal for the minimum function value.
643
650
  min_dist: In order to speed up the prediction, one can use a
644
- sparsified version of the base surrogates where sampling
645
- with a distance smaller than min_dist (in terms of the length
646
- scales of the surrogate) are neglected.
651
+ sparsified version of the base surrogates where observations
652
+ used for training the surrogate are neglected if their distance
653
+ is smaller than min_dist (in terms of the length scales of the
654
+ surrogate).
647
655
 
648
656
  Returns: A dictionary with information about local minima
649
657
  with lists of object values, uncertainties of the objective values,
@@ -702,9 +710,10 @@ class BayesianOptimization(SingleGPSingleVariable, Minimizer):
702
710
  and a tensor of shape ``(num_samples, num_points, output_dim)``
703
711
 
704
712
  min_dist: In order to speed up the prediction, one can use a
705
- sparsified version of the base surrogates where sampling
706
- with a distance smaller than min_dist (in terms of the length
707
- scales of the surrogate) are neglected.
713
+ sparsified version of the base surrogates where observations
714
+ used for training the surrogate are neglected if their distance
715
+ is smaller than min_dist (in terms of the length scales of the
716
+ surrogate).
708
717
  quantiles: A list with quantiles. If not specified, the quantiles
709
718
  [0.16,0.5,0.84] are used.
710
719
  num_samples: Number of samples used for posteriors that have
@@ -714,7 +723,7 @@ class BayesianOptimization(SingleGPSingleVariable, Minimizer):
714
723
  the minimum of num_samples and the ensemble size is used.
715
724
 
716
725
  Returns: A dictionary with the entries "mean" and "variance" if
717
- ``output_type = "mean_var`` and "samples" if ``output_type = "samples"``
726
+ ``output_type = "mean_var"`` and "samples" if ``output_type = "samples"``
718
727
  """
719
728
  return self._ald.predict(
720
729
  points=points,
@@ -763,9 +772,10 @@ class BayesianOptimization(SingleGPSingleVariable, Minimizer):
763
772
  max_samples: The Monte Carlo integration is stopped when the
764
773
  number of evaluated samples equals or exceeds the given value.
765
774
  min_dist: In order to speed up the prediction, one can use a
766
- sparsified version of the base surrogates where sampling
767
- with a distance smaller than min_dist (in terms of the length
768
- scales of the surrogate) are neglected.
775
+ sparsified version of the base surrogates where observations
776
+ used for training the surrogate are neglected if their distance
777
+ is smaller than min_dist (in terms of the length scales of the
778
+ surrogate).
769
779
 
770
780
  Returns: A dictionary with the entries
771
781
 
@@ -852,9 +862,10 @@ class BayesianLeastSquares(SingleGPSingleVariable, LeastSquaresDriver):
852
862
  and a tensor of shape ``(num_samples, num_points, output_dim)``
853
863
 
854
864
  min_dist: In order to speed up the prediction, one can use a
855
- sparsified version of the base surrogates where sampling
856
- with a distance smaller than min_dist (in terms of the length
857
- scales of the surrogate) are neglected.
865
+ sparsified version of the base surrogates where observations
866
+ used for training the surrogate are neglected if their distance
867
+ is smaller than min_dist (in terms of the length scales of the
868
+ surrogate).
858
869
  quantiles: A list with quantiles. If not specified, the quantiles
859
870
  [0.16,0.5,0.84] are used.
860
871
  num_samples: Number of samples used for posteriors that have
@@ -864,7 +875,7 @@ class BayesianLeastSquares(SingleGPSingleVariable, LeastSquaresDriver):
864
875
  the minimum of num_samples and the ensemble size is used.
865
876
 
866
877
  Returns: A dictionary with the entries "mean" and "variance" if
867
- ``output_type = "mean_var`` and "samples" if ``output_type = "samples"``
878
+ ``output_type = "mean_var"`` and "samples" if ``output_type = "samples"``
868
879
  """
869
880
 
870
881
  name = "model_vector" if object_type == "surrogate" else "objective"
@@ -922,9 +933,10 @@ class BayesianLeastSquares(SingleGPSingleVariable, LeastSquaresDriver):
922
933
  max_samples: The Monte Carlo integration is stopped when the
923
934
  number of evaluated samples equals or exceeds the given value.
924
935
  min_dist: In order to speed up the prediction, one can use a
925
- sparsified version of the base surrogates where sampling
926
- with a distance smaller than min_dist (in terms of the length
927
- scales of the surrogate) are neglected.
936
+ sparsified version of the base surrogates where observations
937
+ used for training the surrogate are neglected if their distance
938
+ is smaller than min_dist (in terms of the length scales of the
939
+ surrogate).
928
940
 
929
941
  Returns: A dictionary with the entries
930
942
 
@@ -1013,9 +1025,10 @@ class BayesianLeastSquares(SingleGPSingleVariable, LeastSquaresDriver):
1013
1025
  estimate. E.g. max_sigma_dist=3.0 means that only the 99.7%
1014
1026
  probability region of each parameter is sampled. (default: inf)
1015
1027
  min_dist: In order to speed up the prediction, one can use a
1016
- sparsified version of the base surrogates where sampling
1017
- with a distance smaller than min_dist (in terms of the length
1018
- scales of the surrogate) are neglected.
1028
+ sparsified version of the base surrogates where observations
1029
+ used for training the surrogate are neglected if their distance
1030
+ is smaller than min_dist (in terms of the length scales of the
1031
+ surrogate).
1019
1032
 
1020
1033
  Returns: A dictionary with the following entries:
1021
1034
 
@@ -1086,9 +1099,10 @@ class BayesianReconstruction(SingleGPSingleVariable, Minimizer):
1086
1099
  and a tensor of shape ``(num_samples, num_points, output_dim)``
1087
1100
 
1088
1101
  min_dist: In order to speed up the prediction, one can use a
1089
- sparsified version of the base surrogates where sampling
1090
- with a distance smaller than min_dist (in terms of the length
1091
- scales of the surrogate) are neglected.
1102
+ sparsified version of the base surrogates where observations
1103
+ used for training the surrogate are neglected if their distance
1104
+ is smaller than min_dist (in terms of the length scales of the
1105
+ surrogate).
1092
1106
  quantiles: A list with quantiles. If not specified, the quantiles
1093
1107
  [0.16,0.5,0.84] are used.
1094
1108
  num_samples: Number of samples used for posteriors that have
@@ -1098,7 +1112,7 @@ class BayesianReconstruction(SingleGPSingleVariable, Minimizer):
1098
1112
  the minimum of num_samples and the ensemble size is used.
1099
1113
 
1100
1114
  Returns: A dictionary with the entries "mean" and "variance" if
1101
- ``output_type = "mean_var`` and "samples" if ``output_type = "samples"``
1115
+ ``output_type = "mean_var"`` and "samples" if ``output_type = "samples"``
1102
1116
  """
1103
1117
 
1104
1118
  name = "model_vector" if object_type == "surrogate" else "objective"
@@ -1155,9 +1169,10 @@ class BayesianReconstruction(SingleGPSingleVariable, Minimizer):
1155
1169
  max_samples: The Monte Carlo integration is stopped when the
1156
1170
  number of evaluated samples equals or exceeds the given value.
1157
1171
  min_dist: In order to speed up the prediction, one can use a
1158
- sparsified version of the base surrogates where sampling
1159
- with a distance smaller than min_dist (in terms of the length
1160
- scales of the surrogate) are neglected.
1172
+ sparsified version of the base surrogates where observations
1173
+ used for training the surrogate are neglected if their distance
1174
+ is smaller than min_dist (in terms of the length scales of the
1175
+ surrogate).
1161
1176
 
1162
1177
  Returns: A dictionary with the entries
1163
1178
 
@@ -1246,9 +1261,10 @@ class BayesianReconstruction(SingleGPSingleVariable, Minimizer):
1246
1261
  estimate. E.g. max_sigma_dist=3.0 means that only the 99.7%
1247
1262
  probability region of each parameter is sampled. (default: inf)
1248
1263
  min_dist: In order to speed up the prediction, one can use a
1249
- sparsified version of the base surrogates where sampling
1250
- with a distance smaller than min_dist (in terms of the length
1251
- scales of the surrogate) are neglected.
1264
+ sparsified version of the base surrogates where observations
1265
+ used for training the surrogate are neglected if their distance
1266
+ is smaller than min_dist (in terms of the length scales of the
1267
+ surrogate).
1252
1268
 
1253
1269
  Returns: A dictionary with the following entries:
1254
1270
 
@@ -185,7 +185,7 @@ class Requestor:
185
185
  path: str,
186
186
  data: Optional[dict[str, Any]] = None,
187
187
  ) -> requests.Response:
188
- """Make a request and return vaidated response.
188
+ """Make a request and return validated response.
189
189
  Args:
190
190
  method: HTTP method ("POST", "GET")
191
191
  purpose: purpose of the request
@@ -0,0 +1 @@
1
+ __version__ = '3.0.8'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jcmoptimizer
3
- Version: 3.0.7
3
+ Version: 3.0.8
4
4
  Summary: The JCMoptimizer interface for Python
5
5
  Author-email: Philipp Schneider <philipp.schneider@jcmwave.com>
6
6
  License-Expression: MIT
@@ -1 +0,0 @@
1
- __version__ = '3.0.7'
File without changes
File without changes
File without changes