mlr3
mlr3 copied to clipboard
column info of task is not updated when subsetting features
library(mlr3)
task = tsk("iris")
task$select(c("Petal.Length"))
task$col_info
#> id type levels label fix_factor_levels
#> 1: ..row_id integer <NA> FALSE
#> 2: Petal.Length numeric <NA> FALSE
#> 3: Petal.Width numeric <NA> FALSE
#> 4: Sepal.Length numeric <NA> FALSE
#> 5: Sepal.Width numeric <NA> FALSE
#> 6: Species factor setosa,versicolor,virginica <NA> FALSE
Created on 2023-07-17 with reprex v2.0.2