2017-03-07 1 views
2

は私のコードです:ここでは概要(ランダムフォレスト) - 読む方法?ここ

library(randomforest) 
fit <- randomforest(var_1~.,data = mydf, ntree=100, importance =TRUE) 
summary(fit) 

は、出力がどのように見えるかです:

   Length Class Mode  
call     5 -none- call  
type     1 -none- character 
predicted  322479 factor numeric 
err.rate   300 -none- numeric 
confusion   6 -none- numeric 
votes   644958 matrix numeric 
oob.times  322479 -none- numeric 
classes    2 -none- character 
importance   24 -none- numeric 
importanceSD  18 -none- numeric 
localImportance  0 -none- NULL  
proximity   0 -none- NULL  
ntree    1 -none- numeric 
mtry     1 -none- numeric 
forest    14 -none- list  
y    322479 factor numeric 
test     0 -none- NULL  
inbag    0 -none- NULL  
terms    3 terms call 

はどこ概要の説明を見つけることができますか?

+0

ランダムフォレストを意味すると思います。 –

答えて

2

randomForestの機能summaryは実装されていますが、他のモデルの要約と一致しません。いくつかの内部変数、型と長さを出力するだけです。内部変数の詳細を見つけることができますhere

print(fit)といくつかの(最小)情報を得ることができますfit$forestを使用してください。 LeoのオリジナルコードはFortranで書かれており、現在の実装はAndyのC++を使用しています。いくつかの議論はhereです。

+0

ありがとうございます。 Leo Breimanのページでは、私は「呼び出し」が何であるかを見つけることができない(要約の最初の行)。 「うまく実装されていない」と言っていましたか? – user1700890

+1

@ user1700890はい。私は、RFのサマリーが他のモデルのサマリーほど良くないことを意味します。それとも 'R'の"要約基準 " – hxd1011

関連する問題