Skip to content

Commit

Permalink
Revert threshold adding
Browse files Browse the repository at this point in the history
  • Loading branch information
btjanaka committed Nov 8, 2023
1 parent 9713f6f commit e5f2e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ribs/archives/_archive_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def _stats_update(self, new_objective_sum, new_best_index):
new_best_elite["objective"] > self._stats.obj_max):
# Convert batched values to single values.
new_best_elite = {k: v[0] for k, v in new_best_elite.items()}
new_best_elite.pop("threshold")

new_obj_max = new_best_elite["objective"]
self._best_elite = new_best_elite
Expand Down

0 comments on commit e5f2e81

Please sign in to comment.