Skip to content

Commit

Permalink
Merge pull request #67 from iraikov/fix/epoch-index
Browse files Browse the repository at this point in the history
Fix epoch index reference
  • Loading branch information
iraikov committed Dec 19, 2023
2 parents b565845 + e3baa9d commit 88ae403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion dmosopt/MOASMO.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def optimize(
pct: percentage of resampled points in each iteration
Xinit and Yinit: initial samplers for surrogate model construction
"""

optimizer_kwargs = {}
optimizer_kwargs.update(kwargs)

Expand Down
4 changes: 2 additions & 2 deletions dmosopt/dmosopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def update_epoch(self, resample=False):
else:
x_gen = item
for i in range(x_gen.shape[0]):
self.append_request(EvalRequest(x_gen[i, :], None, epoch_index))
self.append_request(EvalRequest(x_gen[i, :], None, self.epoch_index))
return_state = StrategyState.EnqueuedRequests
return_value = x_gen

Expand Down Expand Up @@ -376,7 +376,7 @@ def update_epoch(self, resample=False):
else:
x_gen = item
for i in range(x_gen.shape[0]):
self.append_request(EvalRequest(x_gen[i, :], None, epoch_index))
self.append_request(EvalRequest(x_gen[i, :], None, self.epoch_index))
return_state = StrategyState.EnqueuedRequests
return_value = x_gen

Expand Down

0 comments on commit 88ae403

Please sign in to comment.