Skip to content

Commit

Permalink
* fix: number of evaluations in log messages when search space is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 23, 2022
1 parent f38d8ad commit facb0cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# bbotk 0.5.0.9000

* fix: Number of evaluations in log messages when search space is empty.

# bbotk 0.5.0

* Adds non dominated sorting with hypervolume contribution to `Archive`.
Expand Down
2 changes: 1 addition & 1 deletion R/OptimInstance.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ OptimInstance = R6Class("OptimInstance",
assert_data_table(xdt)
assert_names(colnames(xdt), must.include = self$search_space$ids())

lg$info("Evaluating %i configuration(s)", nrow(xdt))
lg$info("Evaluating %i configuration(s)", max(1, nrow(xdt)))
xss_trafoed = NULL
if (!nrow(xdt)) {
# eval if search space is empty
Expand Down

0 comments on commit facb0cb

Please sign in to comment.