mlr-org / mlr3

mlr3: Machine Learning in R - next generation
https://mlr3.mlr-org.com
GNU Lesser General Public License v3.0
930 stars 86 forks source link

Issues with as.data.table(mlr_learners) Function #1095

Closed DylanGuo1101 closed 3 weeks ago

DylanGuo1101 commented 3 weeks ago

I'm trying to gather details about learners in mlr3, similar to what I've done previously with mlr3(https://mlr3.mlr-org.com/reference/mlr_learners.html).

However, I've encountered some errors with my current code. Could you advise me on how to resolve these issues?

as.data.table(mlr_learners) Error in p_int(1, default = 1, tags = c("train", "hotstart", "internal_tuning"), : unused arguments (aggr = iter_aggr, in_tune_fn = iter_tune_fn, disable_in_tune = list(early_stopping = FALSE))

mlr_learners

with 181 stored values Keys: classif.abess, classif.AdaBoostM1, classif.bart, classif.bayes_net, classif.C50, classif.catboost, classif.cforest, classif.ctree, classif.cv_glmnet, `sessionInfo()` R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.6 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C time zone: Asia/Shanghai tzcode source: system (glibc) attached base packages: [1] stats graphics grDevices utils datasets methods [7] base other attached packages: [1] patchwork_1.2.0.9000 readxl_1.4.3 [3] openxlsx_4.2.5.2 survival_3.5-7 [5] carSurv_1.0.0 mlr3verse_0.3.0 [7] mlr3proba_0.6.0-9000 mlr3_0.20.0 [9] mlr3extralearners_0.7.1-9000 mlr3pipelines_0.6.0 [11] tinyarray_2.4.2 sva_3.48.0 [13] BiocParallel_1.34.2 genefilter_1.82.1 [15] mgcv_1.9-0 nlme_3.1-163 [17] AnnoProbe_0.1.7 limma_3.56.2 [19] GEOquery_2.68.0 Biobase_2.60.0 [21] BiocGenerics_0.46.0 lattice_0.21-8 [23] reshape2_1.4.4 binr_1.1.1 [25] data.table_1.15.4 scales_1.3.0 [27] TDM_0.3 lubridate_1.9.2 [29] forcats_1.0.0 stringr_1.5.0 [31] dplyr_1.1.4 purrr_1.0.2 [33] readr_2.1.4 tidyr_1.3.1 [35] tibble_3.2.1 ggplot2_3.5.1 [37] tidyverse_2.0.0 loaded via a namespace (and not attached): [1] matrixStats_1.2.0 bitops_1.0-7 [3] enrichplot_1.20.1 HDO.db_0.99.1 [5] httr_1.4.7 RColorBrewer_1.1-3 [7] prabclus_2.3-2 mlr3learners_0.7.0 [9] tools_4.3.1 backports_1.4.1 [11] utf8_1.2.4 R6_2.5.1 [13] DT_0.29 lazyeval_0.2.2 [15] mlr3data_0.7.0 withr_2.5.0 [17] mlr3viz_0.8.0.9000 gridExtra_2.3 [19] fdrtool_1.2.17 cli_3.6.2 [21] mlr3hyperband_0.5.0.9000 scatterpie_0.2.1 [23] diptest_0.77-0 mvtnorm_1.2-4 [25] nnls_1.5 mlr3tuningspaces_0.5.1 [27] robustbase_0.99-0 survMisc_0.5.6 [29] mlr3tuning_1.0.0 yulab.utils_0.0.9 [31] gson_0.1.0 foreign_0.8-84 [33] DOSE_3.26.1 paradox_1.0.0 [35] set6_0.2.6 parallelly_1.36.0 [37] rstudioapi_0.16.0 RSQLite_2.3.1 [39] generics_0.1.3 gridGraphics_0.5-1 [41] zip_2.3.0 car_3.1-2 [43] GO.db_3.17.0 Matrix_1.6-5 [45] fansi_1.0.6 S4Vectors_0.38.1 [47] abind_1.4-5 lifecycle_1.0.4 [49] edgeR_3.42.4 inum_1.0-5 [51] carData_3.0-5 qvalue_2.32.0 [53] grid_4.3.1 blob_1.2.4 [55] crayon_1.5.2 cowplot_1.1.1 [57] annotate_1.78.0 KEGGREST_1.40.0 [59] mboost_2.9-9 pillar_1.9.0 [61] knitr_1.43 fgsea_1.26.0 [63] fpc_2.2-10 corpcor_1.6.10 [65] codetools_0.2-19 fastmatch_1.1-4 [67] glue_1.7.0 spacefillr_0.3.2 [69] downloader_0.4 ggfun_0.1.2 [71] vctrs_0.6.5 png_0.1-8 [73] treeio_1.24.3 cellranger_1.1.0 [75] distr6_1.8.4 gtable_0.3.4 [77] kernlab_0.9-32 cachem_1.0.8 [79] xfun_0.40 libcoin_1.0-9 [81] tidygraph_1.2.3 pheatmap_1.0.12 [83] KMsurv_0.1-5 stabs_0.6-4 [85] ggtree_3.8.2 bit64_4.0.5 [87] bbotk_1.0.0 GenomeInfoDb_1.36.3 [89] rpart_4.1.19 mlr3mbo_0.2.2.9000 [91] colorspace_2.1-0 DBI_1.2.2 [93] Hmisc_5.1-0 nnet_7.3-19 [95] mlr3misc_0.15.1 tidyselect_1.2.0 [97] bit_4.0.5 compiler_4.3.1 [99] ooplah_0.2.0 htmlTable_2.4.1 [101] lgr_0.4.4 xml2_1.3.5 [103] shadowtext_0.1.2 checkmate_2.3.1 [105] DEoptimR_1.1-3 quadprog_1.5-8 [107] palmerpenguins_0.1.1 digest_0.6.35 [109] param6_0.2.4 rmarkdown_2.24 [111] XVector_0.40.0 RhpcBLASctl_0.23-42 [113] htmltools_0.5.6 pkgconfig_2.0.3 [115] base64enc_0.1-3 MatrixGenerics_1.12.3 [117] fastmap_1.1.1 rlang_1.1.3 [119] htmlwidgets_1.6.2 farver_2.1.1 [121] zoo_1.8-12 jsonlite_1.8.8 [123] mclust_6.1 GOSemSim_2.26.1 [125] RCurl_1.98-1.12 magrittr_2.0.3 [127] modeltools_0.2-23 Formula_1.2-5 [129] GenomeInfoDbData_1.2.10 ggplotify_0.1.2 [131] mlr3fselect_1.0.0 munsell_0.5.1 [133] Rcpp_1.0.12 ape_5.7-1 [135] viridis_0.6.4 partykit_1.2-20 [137] stringi_1.7.12 ggraph_2.1.0 [139] zlibbioc_1.46.0 MASS_7.3-60 [141] flexmix_2.3-19 plyr_1.8.8 [143] parallel_4.3.1 dictionar6_0.1.3 [145] listenv_0.9.1 ggrepel_0.9.3 [147] survminer_0.4.9 Biostrings_2.68.1 [149] graphlayouts_1.0.0 splines_4.3.1 [151] hms_1.1.3 locfit_1.5-9.9 [153] mlr3cluster_0.1.9.9000 mlr3filters_0.8.0 [155] igraph_1.5.1 ggpubr_0.6.0 [157] uuid_1.1-1 ggsignif_0.6.4 [159] stats4_4.3.1 XML_3.99-0.14 [161] evaluate_0.23 BiocManager_1.30.22 [163] tzdb_0.4.0 tweenr_2.0.2 [165] polyclip_1.10-4 future_1.33.0 [167] km.ci_0.5-6 clue_0.3-65 [169] ggforce_0.4.1 broom_1.0.5 [171] xtable_1.8-4 tidytree_0.4.5 [173] rstatix_0.7.2 class_7.3-22 [175] viridisLite_0.4.2 clusterProfiler_4.8.3 [177] aplot_0.2.0 memoise_2.0.1 [179] AnnotationDbi_1.62.2 IRanges_2.34.1 [181] cluster_2.1.4 timechange_0.2.0 [183] globals_0.16.3
sebffischer commented 3 weeks ago

Hmm, this error message looks like you have an old paradox version, but the sessionInfo says it's 1.0.0. Can you reinstall paradox to the latest CRAN release and check whether it works?

DylanGuo1101 commented 3 weeks ago

Hmm, this error message looks like you have an old paradox version, but the sessionInfo says it's 1.0.0. Can you reinstall paradox to the latest CRAN release and check whether it works?

Thanks ! I solved it by reinstall paradox.

paradox_1.0.1