※ 引述《skyish (一个人流浪)》之铭言:
: ※ 引述《Tonnny (^~^)》之铭言:
: : In the randomForest reference manual, the example of function randomForest
: : has the code as follows:
: : set.seed(71)
: : iris.rf <- randomForest(Species ~ ., data=iris, importance=TRUE,
: ^^^^^^^^^^^
: I don't know what this parameter mean? Can somebody explan it for me?
: Why there is a "~" after "Species".
: I never see such representation in R before. @.@
: But I guess that it means the column name "Species" of iris data.
: : proximity=TRUE)
: : What is the function of set.seed(71) before run the randomForest?
I have one more question, how to enforce randomForest to do classfication
but not regression? When I input covtype as data, it always shows "regression"
as its randomForest type.