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

error in breast_cancer #848

Open
ykocaturk opened this issue Nov 26, 2024 · 3 comments
Open

error in breast_cancer #848

ykocaturk opened this issue Nov 26, 2024 · 3 comments

Comments

@ykocaturk
Copy link

Uyarı: glm.fit: algorithm did not converge
This happened PipeOp classif.log_reg's $train()Uyarı: glm.fit: fitted probabilities numerically 0 or 1 occurred
This happened PipeOp classif.log_reg's $train()Uyarı: glm.fit: algorithm did not converge
This happened PipeOp classif.log_reg's $train()Uyarı: glm.fit: fitted probabilities numerically 0 or 1 occurred
This happened PipeOp classif.log_reg's $train()Hata: Task 'breast_cancer' has missing values in column(s) 'bare_nuclei.1', 'bare_nuclei.2', 'bare_nuclei.3', 'bare_nuclei.4', 'bare_nuclei.5', 'bare_nuclei.7', 'bare_nuclei.8', 'bare_nuclei.9', 'bare_nuclei.10', but learner 'classif.kknn' does not support this
This happened PipeOp classif.kknn.classif.kknn's $predict()

@be-marc be-marc closed this as completed Nov 26, 2024
@be-marc be-marc reopened this Nov 26, 2024
@be-marc
Copy link
Member

be-marc commented Nov 26, 2024

Sorry I was a little bit fast. Where does this happen?

@be-marc
Copy link
Member

be-marc commented Nov 26, 2024

library(mlr3verse)

tasks = tsks(c("breast_cancer", "sonar"))

glrn_rf_tuned = as_learner(ppl("robustify") %>>% auto_tuner(
    tnr("grid_search", resolution = 5),
    lrn("classif.ranger", num.trees = to_tune(200, 500)),
    rsmp("holdout")
))
glrn_rf_tuned$id = "RF"

glrn_stack = as_learner(ppl("robustify") %>>% ppl("stacking",
    lrns(c("classif.rpart", "classif.kknn")),
    lrn("classif.log_reg")
))
glrn_stack$id = "Stack"

learners = c(glrn_rf_tuned, glrn_stack)
bmr = benchmark(benchmark_grid(tasks, learners, rsmp("cv", folds = 3)))

bmr$aggregate(msr("classif.acc"))

@ykocaturk
Copy link
Author

ykocaturk commented Nov 29, 2024

error "%>>%" function

R version 4.4.2 (2024-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

[1] crayon_1.5.3 cli_3.6.3 knitr_1.49 rlang_1.1.4
[5] xfun_0.49 data.table_1.16.2 listenv_0.9.1 backports_1.5.0
[9] htmltools_0.5.8.1 paradox_1.0.1 mlr3misc_0.15.1 rmarkdown_2.29
[13] evaluate_1.0.1 fastmap_1.2.0 yaml_2.3.9 palmerpenguins_0.1.1
[17] compiler_4.4.2 codetools_0.2-20 rstudioapi_0.17.1 future_1.34.0
[21] digest_0.6.36 R6_2.5.1 parallelly_1.39.0 parallel_4.4.2
[25] checkmate_2.3.2 uuid_1.2-1 tools_4.4.2 globals_0.16.3
[29] lgr_0.4.4

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

2 participants