2017-03-07 6 views
2

내 코드입니다요약 (randomforest) - 읽는 법? 여기</p> <pre><code>library(randomforest) fit <- randomforest(var_1~.,data = mydf, ntree=100, importance =TRUE) summary(fit) </code></pre> <p>출력 모습입니다 : 여기

   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을 사용하여 정보를 얻을 수 있습니다. 레오의 원래 코드는 Fortran으로 작성되었으며 현재 구현은 Andy가 C++을 사용하고 있습니다. 일부 토론은 here입니다.

+0

정말 고마워요. Leo Breiman 페이지에서 나는'call '이 무엇인지 발견 할 수 없다. (요약의 첫 번째 줄). '잘 이행되지 않았다'고 말씀하셨습니까? – user1700890

+1

@ user1700890 예. 나는 RF에 대한 요약이 다른 모델에 대한 요약만큼 좋지 않다는 것을 의미한다. 또는'R'' "summary standards"에 부합하지 않는다. – hxd1011