Skip to content

Commit

Permalink
remove bmr_score class
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Dec 5, 2024
1 parent 003f6e9 commit a464bb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/embedded_ensemble_fselect.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ embedded_ensemble_fselect = function(

# extract scores on the test sets
scores = bmr$score(measure)
# remove `bmr_score` class
class(scores) = c("data.table", "data.frame")

set(scores, j = "features", value = features)
set(scores, j = "n_features", value = n_features)
Expand Down
2 changes: 2 additions & 0 deletions R/ensemble_fselect.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ ensemble_fselect = function(

# extract scores on the test sets
scores = bmr$score(measure)
# remove `bmr_score` class
class(scores) = c("data.table", "data.frame")

set(scores, j = "features", value = features)
set(scores, j = "n_features", value = n_features)
Expand Down

0 comments on commit a464bb9

Please sign in to comment.