Rsquare for regresstion tree
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey! Does anyone know how I can calculate the rsquare for a regression tree?
Thank you!:)
0 commentaires
Réponse acceptée
Plus de réponses (1)
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
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.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!