made sobo and randombo more consistent

This commit is contained in:
2026-07-30 15:05:59 +09:00
parent ba4ebfd999
commit 02293389a1
5 changed files with 36 additions and 70 deletions
+1 -2
View File
@@ -38,7 +38,6 @@ class SingleObjectiveBOEngine(BOEngine):
train_x_path = config["bo"].get("train_x")
train_y_path = config["bo"].get("train_y")
if train_x_path is not None and train_y_path is not None:
if os.path.exists(train_x_path) and os.path.exists(train_y_path):
train_x = np.load(train_x_path)
@@ -168,7 +167,7 @@ class SingleObjectiveBOEngine(BOEngine):
])
train_x_path = config['bo'].get('train_x')
train_x_path = config['bo'].get('tain_x')
train_y_path = config['bo'].get('train_y')
if train_x_path is not None and train_y_path is not None:
np.save(train_x_path, self.train_x)