Skip to content

Commit

Permalink
chore: reanme tmp to search_spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 29, 2025
1 parent e967bde commit 84928c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions R/TuningInstanceAsyncMulticrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ TuningInstanceAsyncMultiCrit = R6Class("TuningInstanceAsyncMultiCrit",
as_search_space(search_space)
}

tmp = split_internal_search_space(search_space)
search_space = tmp$search_space
self$internal_search_space = tmp$internal_search_space
search_spaces = split_internal_search_space(search_space)
search_space = search_spaces$search_space
self$internal_search_space = search_spaces$internal_search_space

# set internal search space
if (!is.null(self$internal_search_space)) {
Expand Down
6 changes: 3 additions & 3 deletions R/TuningInstanceAsyncSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ TuningInstanceAsyncSingleCrit = R6Class("TuningInstanceAsyncSingleCrit",
}

# get ids of primary and internal hyperparameters
tmp = split_internal_search_space(search_space)
search_space = tmp$search_space
self$internal_search_space = tmp$internal_search_space
search_spaces = split_internal_search_space(search_space)
search_space = search_spaces$search_space
self$internal_search_space = search_spaces$internal_search_space

if (!is.null(self$internal_search_space) && self$internal_search_space$has_trafo) {
stopf("Internal tuning and parameter transformations are currently not supported.
Expand Down
6 changes: 3 additions & 3 deletions R/TuningInstanceBatchMulticrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ TuningInstanceBatchMultiCrit = R6Class("TuningInstanceBatchMultiCrit",
}

# get ids of primary and internal hyperparameters
tmp = split_internal_search_space(search_space)
search_space = tmp$search_space
self$internal_search_space = tmp$internal_search_space
search_spaces = split_internal_search_space(search_space)
search_space = search_spaces$search_space
self$internal_search_space = search_spaces$internal_search_space

# set internal search space
if (!is.null(self$internal_search_space)) {
Expand Down
6 changes: 3 additions & 3 deletions R/TuningInstanceBatchSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ TuningInstanceBatchSingleCrit = R6Class("TuningInstanceBatchSingleCrit",
as_search_space(search_space)
}

tmp = split_internal_search_space(search_space)
search_space = tmp$search_space
self$internal_search_space = tmp$internal_search_space
search_spaces = split_internal_search_space(search_space)
search_space = search_spaces$search_space
self$internal_search_space = search_spaces$internal_search_space

if (!is.null(self$internal_search_space)) {
# the learner dictates how to interpret the to_tune(..., inner)
Expand Down

0 comments on commit 84928c4

Please sign in to comment.