Skip to content

Commit

Permalink
refactor: read task features from state (#278)
Browse files Browse the repository at this point in the history
* refactor: read task features from state

* refactor: feature_names
  • Loading branch information
be-marc authored Dec 21, 2023
1 parent 86f19eb commit e052003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pvec2mat = function(p, levs) {


ordered_features = function(task, learner) {
cols = names(learner$state$data_prototype)
cols = names(learner$state$data_prototype) %??% learner$state$feature_names
task$data(cols = intersect(cols, task$feature_names))
}

Expand Down

0 comments on commit e052003

Please sign in to comment.