Classification / Regression Trees for multiple responses?
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear All,
Is there a way in Matlab to build classification/regression trees not only with multiple predictors for a single response, but for multiple predictors and MULTIPLE responses? So far, I have not found a way with fitctree and fitrtree. I am using Matlab 2015a.
Any help is appreciated!
Uwe
댓글 수: 0
답변 (1개)
Ilya
2015년 7월 17일
Suppose your predictors are arranged in matrix X of size N-by-P and your responses are arranged in matrix Y of size N-by-R. Then simply fit one column of Y at a time on the entire X. Grow 1st tree to fit Y(:,1) on X, fit 2nd tree to fit Y(:,2) on X etc. Then use all R trees for prediction.
댓글 수: 2
Andrea Le
2017년 1월 19일
Can you please explain in code how you would grow multiple trees and do the predictions for R trees?
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification Trees에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!