Classification / Regression Trees for multiple responses?

3 ビュー (過去 30 日間)
Uwe Ehret
Uwe Ehret 2015 年 7 月 17 日
コメント済み: Andrea Le 2017 年 1 月 19 日
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

回答 (1 件)

Ilya
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 件のコメント
Uwe Ehret
Uwe Ehret 2015 年 7 月 21 日
Dear Ilya,
Thank you for the fast reply!
Rgards, Uwe
Andrea Le
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 ExchangeClassification Trees についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by