-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
test.join aggregation does not join probabilities #625
Comments
Did the PR solve this completely or should we leave this open? |
The part
was not addressed in the PR, therefore we could leave this open. |
This error still prevails task = wpbc.task
lrn = makeLearner("surv.rpart")
rin = makeResampleDesc("Holdout")
mm = setAggregation(cindex, test.join)
r = resample(lrn, task, rin, measures = mm)
#[Resample] holdout iter: 1
#Error in FUN(X[[i]], ...) :
# You need to have 'truth.time' and 'truth.event' columns in your pred object for measure cindex! |
And task = yeast.task
lrn = makeLearner("multilabel.cforest")
rin = makeResampleDesc("Holdout")
mm = setAggregation(multilabel.acc, test.join)
r = resample(lrn, task, rin, measures = mm)
#[Resample] holdout iter: 1
#Error in `row.names<-.data.frame`(`*tmp*`, value = value) :
# invalid 'row.names' length |
In other words: We should not write custom code for every task class in |
library(mlr)
#> Loading required package: ParamHelpers
task = wpbc.task
lrn = makeLearner("surv.rpart")
rin = makeResampleDesc("Holdout")
mm = setAggregation(cindex, test.join)
r = resample(lrn, task, rin, measures = mm)
#> Resampling: holdout
#> Measures: cindex
#> [Resample] iter 1: 0.6156373
#> Error in FUN(X[[i]], ...): You need to have 'truth.time' and 'truth.event' columns in your pred object for measure cindex! Created on 2019-12-31 by the reprex package (v0.3.0) |
This leads to
Error in getPredictionProbabilities(pred, cl = levs) :
Trying to get probabilities for nonexistant classes: M,R
It is also obvious from the source code.
NB: we have potentially more columns we need to join like se and the stuff from survival...
@mllg as you pushed this some time ago
The text was updated successfully, but these errors were encountered: