Rsquare for regresstion tree
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hey! Does anyone know how I can calculate the rsquare for a regression tree?
Thank you!:)
0 Commenti
Risposta accettata
Più risposte (1)
Ilya
il 14 Lug 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 Commenti
Ilya
il 14 Lug 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.
Vedere anche
Categorie
Scopri di più su Gaussian Process Regression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!