Skip to content

Commit

Permalink
a required parameter can not have a default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Jan 14, 2024
1 parent a5f4947 commit 8c5dcbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/FSelectorExhaustiveSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FSelectorExhaustiveSearch = R6Class("FSelectorExhaustiveSearch",
initialize = function() {
ps = ps(
max_features = p_int(lower = 1L),
batch_size = p_int(lower = 1L, default = 10L, tags = "required")
batch_size = p_int(lower = 1L, tags = "required")
)
ps$values = list(batch_size = 10L)

Expand Down
2 changes: 1 addition & 1 deletion R/FSelectorRandomSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ FSelectorRandomSearch = R6Class("FSelectorRandomSearch",
initialize = function() {
ps = ps(
max_features = p_int(lower = 1L),
batch_size = p_int(lower = 1L, default = 10L, tags = "required")
batch_size = p_int(lower = 1L, tags = "required")
)
ps$values = list(batch_size = 10L)

Expand Down

0 comments on commit 8c5dcbf

Please sign in to comment.