amplify-bbopt 0.2.2__tar.gz → 0.2.3__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.2 → amplify_bbopt-0.2.3}/PKG-INFO +1 -1
  2. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/__version__.py +1 -1
  3. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/trainer.py +5 -5
  4. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/PKG-INFO +1 -1
  5. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/LICENSE.txt +0 -0
  6. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/README.md +0 -0
  7. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/__init__.py +0 -0
  8. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/bb_func.py +0 -0
  9. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/constraint.py +0 -0
  10. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/data_gen.py +0 -0
  11. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/data_list.py +0 -0
  12. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/history.py +0 -0
  13. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/logger.py +0 -0
  14. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/misc.py +0 -0
  15. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/model.py +0 -0
  16. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/objective_example.py +0 -0
  17. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/optimizer.py +0 -0
  18. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/plot.py +0 -0
  19. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/poly.py +0 -0
  20. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/solution_type.py +0 -0
  21. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/variable.py +0 -0
  22. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/variables.py +0 -0
  23. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/SOURCES.txt +0 -0
  24. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/dependency_links.txt +0 -0
  25. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/requires.txt +0 -0
  26. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/top_level.txt +0 -0
  27. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/pyproject.toml +0 -0
  28. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/setup.cfg +0 -0
  29. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/setup.py +0 -0
  30. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_bbfunc.py +0 -0
  31. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_constraint.py +0 -0
  32. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_data_gen.py +0 -0
  33. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_data_list.py +0 -0
  34. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_misc.py +0 -0
  35. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_model.py +0 -0
  36. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_objective_example.py +0 -0
  37. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_optimizer.py +0 -0
  38. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_poly.py +0 -0
  39. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_solution_type.py +0 -0
  40. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_trainer.py +0 -0
  41. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_variable.py +0 -0
  42. {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/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.2
3
+ Version: 0.2.3
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>
@@ -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.2"
6
+ __version__ = "0.2.3"
@@ -127,14 +127,14 @@ class TorchFMTrainer(TrainerBase):
127
127
 
128
128
  # Validation
129
129
  with torch.no_grad():
130
+ loss = 0
130
131
  for x_valid, y_valid in valid_loader:
131
- loss = 0
132
132
  y_pred = model(x_valid)
133
133
  loss += criterion(y_pred, y_valid)
134
- # If the loss is updated, update the parameters
135
- if loss < min_loss:
136
- best_parameters = copy.deepcopy(model.state_dict())
137
- min_loss = loss
134
+ # If the loss is updated, update the parameters
135
+ if loss < min_loss:
136
+ best_parameters = copy.deepcopy(model.state_dict())
137
+ min_loss = loss
138
138
  if scheduler is not None:
139
139
  scheduler.step()
140
140
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amplify-bbopt
3
- Version: 0.2.2
3
+ Version: 0.2.3
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>
File without changes
File without changes
File without changes
File without changes