Re: About HW7

作者: rafan (@_@"""")   2005-04-30 18:50:34
※ 引述《skyish (一個人流浪)》之銘言:
: ※ 引述《skyish (一個人流浪)》之銘言:
: : ^^^^^^^^^^^
: : 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.
a ``formula'' in R.
By the way, as R's manual says:
For large data sets, especially those with large number of
variables, calling 'randomForest' via the formula interface is not
advised: There may be too much overhead in handling the formula.
You would better not to use formula interface.
: 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.
Your label vector must be in a factor.
y: A response vector. If a factor, classification is assumed,
otherwise regression is assumed. If omitted, 'randomForest'
will run in unsupervised mode.

Links booklink

Contact Us: admin [ a t ] ucptt.com