Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column info of task is not updated when subsetting features #946

Open
sebffischer opened this issue Jul 17, 2023 · 0 comments
Open

column info of task is not updated when subsetting features #946

sebffischer opened this issue Jul 17, 2023 · 0 comments

Comments

@sebffischer
Copy link
Sponsor Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant