Skip to content

Commit

Permalink
compatibility: bbotk 1.1.1 (#117)
Browse files Browse the repository at this point in the history
* compatibility: bbotk 1.1.1

* ...

* ...
  • Loading branch information
be-marc authored Oct 15, 2024
1 parent bfe7774 commit ff058c5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# mlr3fselect (development version)

* compatibility: bbotk 1.1.1

# mlr3fselect 1.1.0

* compatibility: mlr3 0.21.0
Expand Down
4 changes: 3 additions & 1 deletion R/FSelectInstanceBatchMultiCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ FSelectInstanceBatchMultiCrit = R6Class("FSelectInstanceBatchMultiCrit",
#'
#' @param ydt (`data.table::data.table()`)\cr
#' Optimal outcomes, e.g. the Pareto front.
assign_result = function(xdt, ydt) {
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, ydt, ...) {
# Add feature names to result for easy task subsetting
features = map(transpose_list(xdt), function(x) {
self$objective$task$feature_names[as.logical(x)]
Expand Down
4 changes: 3 additions & 1 deletion R/FSelectInstanceBatchSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ FSelectInstanceBatchSingleCrit = R6Class("FSelectInstanceBatchSingleCrit",
#'
#' @param y (`numeric(1)`)\cr
#' Optimal outcome.
assign_result = function(xdt, y) {
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, y, ...) {
# Add feature names to result for easy task subsetting
feature_names = self$objective$task$feature_names
features = list(feature_names[as.logical(xdt[, feature_names, with = FALSE])])
Expand Down
5 changes: 4 additions & 1 deletion man/FSelectInstanceBatchMultiCrit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion man/FSelectInstanceBatchSingleCrit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff058c5

Please sign in to comment.