mlr-org / mlr3learners

Recommended learners for mlr3
https://mlr3learners.mlr-org.com
GNU Lesser General Public License v3.0
89 stars 14 forks source link

'surv.xgboost' not found in DictionaryLearner #239

Closed MosquitoFan closed 2 years ago

MosquitoFan commented 2 years ago

I have updated the package "mlr3learner" and "mlr3proba", and now I can't run

> lrn("surv.xgboost", objective="survival:cox", nrounds=300L, eta=0.1)

there is a error showed

"Element with key 'surv.xgboost' not found in DictionaryLearner! Did you mean 'surv.mboost' / 'classif.xgboost' / 'regr.xgboost'?"

I don't know what should I do to get the learner of surv.xgboost.

Thank you!

MosquitoFan commented 2 years ago

I can't use surv.xgboost because I install the mlr3extralearners from local zip downloaded from github, which lead the R can't use the

DictionaryLearner

.

My computer can't directly install the package from remotes::install_github("mlr-org/mlr3extralearners",INSTALL_opts="--no-multiarch").

And I set Sys.setenv(R_REMOTES_STANDALONE="true") before running the install_github, then the package install successfully and the dictionary can be used now