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.
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/PKG-INFO +1 -1
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/__version__.py +1 -1
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/trainer.py +5 -5
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/PKG-INFO +1 -1
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/LICENSE.txt +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/README.md +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/__init__.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/bb_func.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/constraint.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/data_gen.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/data_list.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/history.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/logger.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/misc.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/model.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/objective_example.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/optimizer.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/plot.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/poly.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/solution_type.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/variable.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt/variables.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/SOURCES.txt +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/dependency_links.txt +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/requires.txt +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/amplify_bbopt.egg-info/top_level.txt +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/pyproject.toml +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/setup.cfg +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/setup.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_bbfunc.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_constraint.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_data_gen.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_data_list.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_misc.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_model.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_objective_example.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_optimizer.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_poly.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_solution_type.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_trainer.py +0 -0
- {amplify_bbopt-0.2.2 → amplify_bbopt-0.2.3}/test/test_variable.py +0 -0
- {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.
|
|
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>
|
|
@@ -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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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.
|
|
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
|
|
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
|