Skip to content

Commit

Permalink
update random_search optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasvente committed Oct 7, 2023
1 parent 57f31d5 commit 8c55099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lkauto/optimization_strategies/random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def random_search(cs: ConfigurationSpace,

# keep track of best performing configuration
if minimize_error_metric_val:
if error < best_error_score:
if error > best_error_score:
best_error_score = error
best_configuration = config
else:
if error > best_error_score:
if error < best_error_score:
best_error_score = error
best_configuration = config
# add configuration to list of tested configurations
Expand Down

0 comments on commit 8c55099

Please sign in to comment.