-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Measure$score has weird NaN producing code #1110
Comments
i have encountered the same question many times. please help me address it. thanks. tab_rsmp
#> nr task_id learner_id resampling_id iters classif.auc classif.acc classif.tpr classif.tnr classif.ppv classif.npv
#> <int> <char> <char> <char> <int> <num> <num> <num> <num> <num> <num>
#> 1: 1 1 classif.glmnet holdout 1 0.9333333 0.9615385 0.9333333 1.0000000 1.0000000 0.9166667
#> 2: 2 1 classif.glmnet repeated_cv 100 0.9901825 0.9498611 0.9226667 0.9662500 NaN 0.9461071
#> 3: 3 1 classif.glmnet subsampling 1000 0.9899363 0.9455000 0.9289839 0.9604998 0.9529729 0.9413482
#> 4: 4 1 classif.glmnet bootstrap 1000 0.9868122 0.9397969 0.9250875 0.9536506 0.9440450 0.9381008
#> Hidden columns: resample_result code: resamplings <- list(
holdout_70 = rsmp("holdout", ratio = 0.7),
repeated_cv_10_10 = rsmp("repeated_cv", folds = 10, repeats = 10),
subsampling_70 = rsmp("subsampling", ratio = 0.7, repeats = 1000),
bootstrap_1000 = rsmp("bootstrap", repeats = 1000, ratio = 0.7)
)
design_rsmp <- benchmark_grid(
tasks = task_model,
learners = lrns('classif.glmnet', predict_type = "prob"),
resamplings = resamplings
)
bmr_rsmp <- benchmark(design_rsmp, store_models = T)
measures <- msrs(c("classif.auc", "classif.acc", "classif.tpr", "classif.tnr", "classif.ppv", "classif.npv"))
tab_rsmp <- bmr_rsmp$aggregate(measures) |
@zhonghua723 what you posted is likely another issue. could you please open another issue and please (!) post a fully reproducible example |
(in particular, we would need the |
ok, lets add warning, docs and tests |
Warnings where already in place in |
Note that this is documented in the field of Measure
|
we have this above. this not documented and weird
The text was updated successfully, but these errors were encountered: