physbo 2.0.1__tar.gz → 2.0.2__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.
- {physbo-2.0.1 → physbo-2.0.2}/PKG-INFO +6 -4
- {physbo-2.0.1 → physbo-2.0.2}/README.md +5 -3
- {physbo-2.0.1 → physbo-2.0.2}/physbo/__init__.py +1 -1
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete/policy.py +7 -1
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete_multi/policy.py +8 -2
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/PKG-INFO +6 -4
- physbo-2.0.2/pyproject.toml +3 -0
- {physbo-2.0.1 → physbo-2.0.2}/setup.cfg +1 -1
- physbo-2.0.1/pyproject.toml +0 -3
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/basis/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/basis/fourier.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/core/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/core/model.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/inf/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/inf/exact.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/lik/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/lik/_src/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/lik/_src/cov.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/lik/gauss.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/lik/linear.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/predictor.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/prior/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/blm/prior/gauss.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/core/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/core/learning.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/core/model.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/core/prior.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/cov/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/cov/_src/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/cov/_src/enhance_gauss.pyx +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/cov/gauss.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/inf/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/inf/exact.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/lik/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/lik/gauss.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/mean/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/mean/const.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/mean/zero.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/gp/predictor.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/_src/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/_src/cholupdate.pyx +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/_src/diagAB.pyx +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/_src/logsumexp.pyx +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/_src/traceAB.pyx +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/centering.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/gauss_elim.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/misc/set_config.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/opt/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/opt/adam.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/predictor.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete/results.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete_multi/__init__.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/discrete_multi/results.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/pareto.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/score.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/score_multi.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/search/utility.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo/variable.py +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/SOURCES.txt +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/dependency_links.txt +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/not-zip-safe +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/requires.txt +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/physbo.egg-info/top_level.txt +0 -0
- {physbo-2.0.1 → physbo-2.0.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: physbo
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: optimization tool for PHYSics based on Bayesian Optimization
|
|
5
5
|
Home-page: https://github.com/issp-center-dev/PHYSBO
|
|
6
6
|
Author: PHYSBO developers
|
|
@@ -18,7 +18,7 @@ A standard implementation (e.g., scikit-learn), however, can accommodate only sm
|
|
|
18
18
|
PHYSBO is highly scalable due to an efficient protocol that employs Thompson sampling, random feature maps, one-rank Cholesky update and automatic hyperparameter tuning. Technical features are described in [COMBO's document](https://github.com/tsudalab/combo/blob/master/docs/combo_document.pdf) and [PHYSBO's report](https://doi.org/10.1016/j.cpc.2022.108405) (open access).
|
|
19
19
|
PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for academic use.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Documentation
|
|
22
22
|
|
|
23
23
|
- Stable (master branch)
|
|
24
24
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/index.html)
|
|
@@ -27,7 +27,7 @@ PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for aca
|
|
|
27
27
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/develop/en/index.html)
|
|
28
28
|
- [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/index.html)
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Dependencies
|
|
31
31
|
|
|
32
32
|
- Python >= 3.6
|
|
33
33
|
- No longer tested with Python 3.6
|
|
@@ -74,7 +74,9 @@ python3 -m pip uninstall physbo
|
|
|
74
74
|
|
|
75
75
|
## Usage
|
|
76
76
|
|
|
77
|
-
[
|
|
77
|
+
For an introductory tutorial please consult the documentation. ([English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/notebook/tutorial_basic.html) / [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/install.html#id2))
|
|
78
|
+
|
|
79
|
+
['examples/simple.py'](./examples/simple.py) is a simple example.
|
|
78
80
|
|
|
79
81
|
## Data repository
|
|
80
82
|
|
|
@@ -5,7 +5,7 @@ A standard implementation (e.g., scikit-learn), however, can accommodate only sm
|
|
|
5
5
|
PHYSBO is highly scalable due to an efficient protocol that employs Thompson sampling, random feature maps, one-rank Cholesky update and automatic hyperparameter tuning. Technical features are described in [COMBO's document](https://github.com/tsudalab/combo/blob/master/docs/combo_document.pdf) and [PHYSBO's report](https://doi.org/10.1016/j.cpc.2022.108405) (open access).
|
|
6
6
|
PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for academic use.
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Documentation
|
|
9
9
|
|
|
10
10
|
- Stable (master branch)
|
|
11
11
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/index.html)
|
|
@@ -14,7 +14,7 @@ PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for aca
|
|
|
14
14
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/develop/en/index.html)
|
|
15
15
|
- [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/index.html)
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Dependencies
|
|
18
18
|
|
|
19
19
|
- Python >= 3.6
|
|
20
20
|
- No longer tested with Python 3.6
|
|
@@ -61,7 +61,9 @@ python3 -m pip uninstall physbo
|
|
|
61
61
|
|
|
62
62
|
## Usage
|
|
63
63
|
|
|
64
|
-
[
|
|
64
|
+
For an introductory tutorial please consult the documentation. ([English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/notebook/tutorial_basic.html) / [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/install.html#id2))
|
|
65
|
+
|
|
66
|
+
['examples/simple.py'](./examples/simple.py) is a simple example.
|
|
65
67
|
|
|
66
68
|
## Data repository
|
|
67
69
|
|
|
@@ -694,7 +694,13 @@ class policy:
|
|
|
694
694
|
self.predictor = pickle.load(f)
|
|
695
695
|
|
|
696
696
|
N = self.history.total_num_search
|
|
697
|
-
|
|
697
|
+
|
|
698
|
+
visited = self.history.chosen_actions[:N]
|
|
699
|
+
local_index = np.searchsorted(self.actions, visited)
|
|
700
|
+
local_index = local_index[
|
|
701
|
+
np.take(self.actions, local_index, mode="clip") == visited
|
|
702
|
+
]
|
|
703
|
+
self.actions = self._delete_actions(local_index)
|
|
698
704
|
|
|
699
705
|
def export_predictor(self):
|
|
700
706
|
"""
|
|
@@ -58,7 +58,7 @@ class policy(discrete.policy):
|
|
|
58
58
|
msg = "ERROR: len(initial_data[0]) != initial_data[1].shape[0]"
|
|
59
59
|
raise RuntimeError(msg)
|
|
60
60
|
self.write(actions, fs)
|
|
61
|
-
self.actions = sorted(list(set(self.actions) - set(actions)))
|
|
61
|
+
self.actions = np.array(sorted(list(set(self.actions) - set(actions))))
|
|
62
62
|
|
|
63
63
|
if comm is None:
|
|
64
64
|
self.mpicomm = None
|
|
@@ -490,7 +490,13 @@ class policy(discrete.policy):
|
|
|
490
490
|
self.load_predictor_list(file_predictor_list)
|
|
491
491
|
|
|
492
492
|
N = self.history.total_num_search
|
|
493
|
-
|
|
493
|
+
|
|
494
|
+
visited = self.history.chosen_actions[:N]
|
|
495
|
+
local_index = np.searchsorted(self.actions, visited)
|
|
496
|
+
local_index = local_index[
|
|
497
|
+
np.take(self.actions, local_index, mode="clip") == visited
|
|
498
|
+
]
|
|
499
|
+
self.actions = self._delete_actions(local_index)
|
|
494
500
|
|
|
495
501
|
def save_predictor_list(self, file_name):
|
|
496
502
|
with open(file_name, "wb") as f:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: physbo
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: optimization tool for PHYSics based on Bayesian Optimization
|
|
5
5
|
Home-page: https://github.com/issp-center-dev/PHYSBO
|
|
6
6
|
Author: PHYSBO developers
|
|
@@ -18,7 +18,7 @@ A standard implementation (e.g., scikit-learn), however, can accommodate only sm
|
|
|
18
18
|
PHYSBO is highly scalable due to an efficient protocol that employs Thompson sampling, random feature maps, one-rank Cholesky update and automatic hyperparameter tuning. Technical features are described in [COMBO's document](https://github.com/tsudalab/combo/blob/master/docs/combo_document.pdf) and [PHYSBO's report](https://doi.org/10.1016/j.cpc.2022.108405) (open access).
|
|
19
19
|
PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for academic use.
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Documentation
|
|
22
22
|
|
|
23
23
|
- Stable (master branch)
|
|
24
24
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/index.html)
|
|
@@ -27,7 +27,7 @@ PHYSBO was developed based on [COMBO](https://github.com/tsudalab/combo) for aca
|
|
|
27
27
|
- [English](https://issp-center-dev.github.io/PHYSBO/manual/develop/en/index.html)
|
|
28
28
|
- [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/index.html)
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Dependencies
|
|
31
31
|
|
|
32
32
|
- Python >= 3.6
|
|
33
33
|
- No longer tested with Python 3.6
|
|
@@ -74,7 +74,9 @@ python3 -m pip uninstall physbo
|
|
|
74
74
|
|
|
75
75
|
## Usage
|
|
76
76
|
|
|
77
|
-
[
|
|
77
|
+
For an introductory tutorial please consult the documentation. ([English](https://issp-center-dev.github.io/PHYSBO/manual/master/en/notebook/tutorial_basic.html) / [日本語](https://issp-center-dev.github.io/PHYSBO/manual/develop/ja/install.html#id2))
|
|
78
|
+
|
|
79
|
+
['examples/simple.py'](./examples/simple.py) is a simple example.
|
|
78
80
|
|
|
79
81
|
## Data repository
|
|
80
82
|
|
physbo-2.0.1/pyproject.toml
DELETED
|
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
|
|
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
|