我想要一个集成在mlr包中的所有集群算法的列表。我删除了这段代码以返回它们,但它排除了已卸载的代码:
library(mlr)
listLearners("cluster") # default: create=F, check.packages=F相反,我会收到以下警告:
Warning in listLearners.character("cluster") :
The following learners could not be constructed, probably because their packages are not installed:
classif.ada,classif.bartMachine,classif.bdk,classif.blackboost,classif.boosting,classif.bst,classif.C50,classif.clusterSVM,classif.cvglmnet,classif.dbnDNN,classif.dcSVM,classif.earth,classif.evtree,classif.extraTrees,classif.fnn,classif.gamboost,classif.gaterSVM,classif.geoDA,classif.glmboost,classif.glmnet,classif.hdrda,classif.kknn,classif.LiblineaRL1L2SVC,classif.LiblineaRL1LogReg,classif.LiblineaRL2L1SVC,classif.LiblineaRL2LogReg,classif.LiblineaRL2SVC,classif.LiblineaRMultiClassSVC,classif.linDA,classif.lqa,classif.mda,classif.mlp,classif.neuralnet,classif.nnTrain,classif.nodeHarvest,classif.pamr,classif.penalized.fusedlasso,classif.penalized.lasso,classif.penalized.ridge,classif.plr,classif.quaDA,classif.randomForestSRC,classif.ranger,classif.rda,classif.rFerns,classif.rknn,classif.rotationForest,classif.RRF,classif.rrlda,classif.saeDNN,classif.sda,classif.sparseLDA,classif.xgboost [... truncated]我做错什么了还是这个功能坏了?
发布于 2017-08-02 16:54:27
在传递字符串时,check.packages的缺省值实际上是TRUE。只需将其设置为FALSE,一切都会正常运行:
listLearners("cluster", check.packages = FALSE)发布于 2017-08-02 13:07:17
tl;dr
你可以找到他们这里。
解释
如果你设置
options(warning.length = 8170)你可以得到整个警告信息。这一切以
"..... classif.penalized.ridge,classif.plr,classif.quaDA,classif.randomForestSRC,classif.ranger,classif.rda,classif... <truncated> Check ?learners to see which packages you need or install mlr with all suggestions."
如果然后检查?learners,您将看到获取信息的提示:
所有受支持的学习者都可以通过listLearners或附录学习者/中的表格找到。
所以,这是所有分类器都被收集的网站。
在左边,你可以跳到所有的“聚类分析”学习者。
https://stackoverflow.com/questions/45459846
复制相似问题