Skip to content

Commit

Permalink
OK to remove this?
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Nov 18, 2024
1 parent d180bd1 commit b565ac1
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/everest/everest_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
Tuple,
)

import numpy as np
import polars
from ropt.config.enopt import EnOptConfig
from ropt.enums import EventType
Expand Down Expand Up @@ -666,22 +665,7 @@ def _handle_finished_batch_event(self, event: Event):
converted_results = tuple(
convert_to_maximize(result) for result in event.results
)
results = []
best_value = -np.inf
best_results = None
for item in converted_results:
if isinstance(item, GradientResults):
results.append(item)
if (
isinstance(item, FunctionResults)
and item.functions is not None
and item.functions.weighted_objective > best_value
):
best_value = item.functions.weighted_objective
best_results = item

if best_results is not None:
results = [best_results, *results]
results = list(converted_results)
last_batch = -1

_batches = {}
Expand Down

0 comments on commit b565ac1

Please sign in to comment.