Rsquare for regresstion tree

2 ビュー (過去 30 日間)
Tania
Tania 2014 年 7 月 13 日
コメント済み: Ilya 2014 年 7 月 14 日
Hey! Does anyone know how I can calculate the rsquare for a regression tree?
Thank you!:)

採用された回答

dpb
dpb 2014 年 7 月 13 日

その他の回答 (1 件)

Ilya
Ilya 2014 年 7 月 14 日
R-square is the square of the Pearson correlation between predicted and observed response.
R2 = corr(yobs,yhat)^2
for column-vectors yobs and yhat.
  2 件のコメント
Tania
Tania 2014 年 7 月 14 日
Thanks dpd for the link, but it only shows how build the mse formula. Thanks llya, i tried to find the yobs & yhat in the documentation, but can not find it. Where did you find these information?
Thank you!
Ilya
Ilya 2014 年 7 月 14 日
yobs and yhat are vectors of observed and predicted response values. You already have them. You can find definitions of R2 in many places such as Wikipedia or textbooks.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by