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

$score() has surprising behaviour when passing the argument predict_sets #1011

Open
sebffischer opened this issue Mar 19, 2024 · 0 comments
Open

Comments

@sebffischer
Copy link
Sponsor Member

library(mlr3verse)
#> Loading required package: mlr3

resample(
  tsk("mtcars"), lrn("regr.rpart", predict_sets = "train"), rsmp("holdout")
)$score(msr("regr.mse"), predict_sets = "train")
#> INFO  [17:51:35.145] [mlr3] Applying learner 'regr.rpart' on task 'mtcars' (iter 1/1)
#> Warning: Measure 'regr.mse' needs predict sets 'test', but learner 'regr.rpart'
#> only predicted on sets 'train'
#>    task_id learner_id resampling_id iteration regr.mse
#>     <char>     <char>        <char>     <int>    <num>
#> 1:  mtcars regr.rpart       holdout         1      NaN
#> Hidden columns: task, learner, resampling, prediction

Created on 2024-03-19 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