[英]Random Forest algorithm in R
How can I see the algorithm of a randomForest in R? 如何在R中看到randomForest的算法?
I have tried with: 我尝试过:
library(randomForest)
radomForest
But the output I´ve got is: 但是我得到的输出是:
function (x, ...)
UseMethod("randomForest")
<environment: namespace:randomForest>
Thanks! 谢谢!
You don't see much there, b/c randomForest
is a S3 function and calls different functions depending on the class of the input you provide to the algorithm. 您在那里看不到太多,b / c
randomForest
是S3函数,并根据您提供给算法的输入的类别来调用不同的函数。 Typing randomForest:::randomForest.default
gives you more information. 键入
randomForest:::randomForest.default
可为您提供更多信息。
However, I assume that parts of the functions used therein are written in C or Fortran. 但是,我假设其中使用的部分功能是用C或Fortran编写的。 To see all the code, there is a GitHub mirror of the cran package here: https://github.com/cran/randomForest
要查看所有代码,这里有cran包的GitHub镜像: https : //github.com/cran/randomForest
Note: methods(randomForest)
returns the available methods of a S3 generic function. 注意:
methods(randomForest)
返回S3泛型函数的可用方法。 In this case: 在这种情况下:
methods(randomForest)
## [1] randomForest.default* randomForest.formula*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.