Effacer les filtres
Effacer les filtres

Rsquare for regresstion tree

4 vues (au cours des 30 derniers jours)
Tania
Tania le 13 Juil 2014
Commenté : Ilya le 14 Juil 2014
Hey! Does anyone know how I can calculate the rsquare for a regression tree?
Thank you!:)

Réponse acceptée

dpb
dpb le 13 Juil 2014

Plus de réponses (1)

Ilya
Ilya le 14 Juil 2014
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 commentaires
Tania
Tania le 14 Juil 2014
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 le 14 Juil 2014
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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by