mlr3 icon indicating copy to clipboard operation
mlr3 copied to clipboard

column info of task is not updated when subsetting features

Open sebffischer opened this issue 1 year ago • 0 comments

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

sebffischer avatar Jul 17 '23 08:07 sebffischer