amplify-bbopt 0.2.0__tar.gz → 0.2.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.
Files changed (42) hide show
  1. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/PKG-INFO +3 -3
  2. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/README.md +1 -2
  3. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/__version__.py +1 -1
  4. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/logger.py +2 -0
  5. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/plot.py +4 -3
  6. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt.egg-info/PKG-INFO +3 -3
  7. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt.egg-info/requires.txt +1 -0
  8. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/pyproject.toml +1 -0
  9. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/LICENSE.txt +0 -0
  10. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/__init__.py +0 -0
  11. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/bb_func.py +0 -0
  12. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/constraint.py +0 -0
  13. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/data_gen.py +0 -0
  14. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/data_list.py +0 -0
  15. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/history.py +0 -0
  16. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/misc.py +0 -0
  17. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/model.py +0 -0
  18. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/objective_example.py +0 -0
  19. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/optimizer.py +0 -0
  20. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/poly.py +0 -0
  21. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/solution_type.py +0 -0
  22. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/trainer.py +0 -0
  23. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/variable.py +0 -0
  24. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt/variables.py +0 -0
  25. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt.egg-info/SOURCES.txt +0 -0
  26. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt.egg-info/dependency_links.txt +0 -0
  27. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/amplify_bbopt.egg-info/top_level.txt +0 -0
  28. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/setup.cfg +0 -0
  29. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/setup.py +0 -0
  30. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_bbfunc.py +0 -0
  31. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_constraint.py +0 -0
  32. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_data_gen.py +0 -0
  33. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_data_list.py +0 -0
  34. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_misc.py +0 -0
  35. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_model.py +0 -0
  36. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_objective_example.py +0 -0
  37. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_optimizer.py +0 -0
  38. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_poly.py +0 -0
  39. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_solution_type.py +0 -0
  40. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_trainer.py +0 -0
  41. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_variable.py +0 -0
  42. {amplify_bbopt-0.2.0 → amplify_bbopt-0.2.2}/test/test_variables.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amplify-bbopt
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: An Amplify-based library to facilitate black-box optimization
5
5
  Author-email: Fixstars Amplify Corporation <y_matsuda@fixstars.com>
6
6
  Maintainer-email: Yoshiki Matsuda <y_matsuda@fixstars.com>, Yuki Minamoto <yuki.minamoto@fixstars.com>
@@ -52,6 +52,7 @@ Requires-Dist: numpy
52
52
  Requires-Dist: pandas
53
53
  Requires-Dist: torch
54
54
  Requires-Dist: plotly
55
+ Requires-Dist: nbformat>=4.2.0
55
56
 
56
57
  # Amplify-BBOpt
57
58
 
@@ -60,8 +61,7 @@ Amplify-BBOpt is a Python package to facilitate the execution of black-box optim
60
61
  - Documentation:  
61
62
  https://amplify.fixstars.com/docs/amplify-bbopt/v0/
62
63
  - Contributing (bug reports, improvements):  
63
- https://amplify.fixstars.com/en/contact  
64
- https://github.com/fixstars/amplify-bbopt/issues
64
+ https://amplify.fixstars.com/en/contact
65
65
 
66
66
  Amplify-BBOpt is built around the [Amplify SDK](https://amplify.fixstars.com/en/docs/amplify/). Annealing-based black-box optimization methods, FMQA and kernel-QA, are available in conjunction with quantum annealing machines and Ising machines (hence using Amplify SDK). Important features include (but not limited to):
67
67
 
@@ -5,8 +5,7 @@ Amplify-BBOpt is a Python package to facilitate the execution of black-box optim
5
5
  - Documentation:  
6
6
  https://amplify.fixstars.com/docs/amplify-bbopt/v0/
7
7
  - Contributing (bug reports, improvements):  
8
- https://amplify.fixstars.com/en/contact  
9
- https://github.com/fixstars/amplify-bbopt/issues
8
+ https://amplify.fixstars.com/en/contact
10
9
 
11
10
  Amplify-BBOpt is built around the [Amplify SDK](https://amplify.fixstars.com/en/docs/amplify/). Annealing-based black-box optimization methods, FMQA and kernel-QA, are available in conjunction with quantum annealing machines and Ising machines (hence using Amplify SDK). Important features include (but not limited to):
12
11
 
@@ -3,4 +3,4 @@
3
3
  # This source code is licensed under the MIT license found in the
4
4
  # LICENSE file in the root directory of this source tree.
5
5
 
6
- __version__ = "0.2.0"
6
+ __version__ = "0.2.2"
@@ -15,6 +15,8 @@ class Logger:
15
15
  logger_name (str): A logger name.
16
16
  """
17
17
  self.logger = logging.getLogger(logger_name)
18
+ self.logger.propagate = False
19
+
18
20
  self.logger.setLevel(logging.INFO)
19
21
 
20
22
  self.handler: logging.Handler | None = None
@@ -42,9 +42,9 @@ def plot_history(history: History, log_scale: bool = False) -> go.Figure:
42
42
 
43
43
  # Plot corresponding to the data obtained purely from annealing.
44
44
  if DEDUP in history_df:
45
- plot_idx = np.where(1 - history_df[DEDUP][num_initial_data:])[0]
45
+ plot_idx = np.where(1 - history_df[DEDUP].iloc[num_initial_data:])[0]
46
46
  x = plot_idx + 1
47
- y = [history_df[OBJ_TOT][i] for i in plot_idx + num_initial_data]
47
+ y = [history_df[OBJ_TOT].iloc[i] for i in plot_idx + num_initial_data]
48
48
 
49
49
  fig.add_trace(
50
50
  go.Scatter(
@@ -62,7 +62,8 @@ def plot_history(history: History, log_scale: bool = False) -> go.Figure:
62
62
  fig.add_trace(
63
63
  go.Scatter(
64
64
  x=list(range(-num_initial_data + 1, len(history_df) - num_initial_data + 1)),
65
- y=[history_df[OBJ_TOT].iloc[0]] + [min(history_df[OBJ_TOT][: i + 1]) for i in range(1, len(history_df))],
65
+ y=[history_df[OBJ_TOT].iloc[0]]
66
+ + [min(history_df[OBJ_TOT].iloc[: i + 1]) for i in range(1, len(history_df))],
66
67
  mode="lines+markers",
67
68
  name="best objective",
68
69
  line={"color": "#E4001B", "width": 4},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amplify-bbopt
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: An Amplify-based library to facilitate black-box optimization
5
5
  Author-email: Fixstars Amplify Corporation <y_matsuda@fixstars.com>
6
6
  Maintainer-email: Yoshiki Matsuda <y_matsuda@fixstars.com>, Yuki Minamoto <yuki.minamoto@fixstars.com>
@@ -52,6 +52,7 @@ Requires-Dist: numpy
52
52
  Requires-Dist: pandas
53
53
  Requires-Dist: torch
54
54
  Requires-Dist: plotly
55
+ Requires-Dist: nbformat>=4.2.0
55
56
 
56
57
  # Amplify-BBOpt
57
58
 
@@ -60,8 +61,7 @@ Amplify-BBOpt is a Python package to facilitate the execution of black-box optim
60
61
  - Documentation:  
61
62
  https://amplify.fixstars.com/docs/amplify-bbopt/v0/
62
63
  - Contributing (bug reports, improvements):  
63
- https://amplify.fixstars.com/en/contact  
64
- https://github.com/fixstars/amplify-bbopt/issues
64
+ https://amplify.fixstars.com/en/contact
65
65
 
66
66
  Amplify-BBOpt is built around the [Amplify SDK](https://amplify.fixstars.com/en/docs/amplify/). Annealing-based black-box optimization methods, FMQA and kernel-QA, are available in conjunction with quantum annealing machines and Ising machines (hence using Amplify SDK). Important features include (but not limited to):
67
67
 
@@ -3,3 +3,4 @@ numpy
3
3
  pandas
4
4
  torch
5
5
  plotly
6
+ nbformat>=4.2.0
@@ -27,6 +27,7 @@ dependencies = [
27
27
  "pandas",
28
28
  "torch",
29
29
  "plotly",
30
+ "nbformat>=4.2.0",
30
31
  ]
31
32
  description = "An Amplify-based library to facilitate black-box optimization"
32
33
  dynamic = ["version"]
File without changes
File without changes
File without changes