R2 score #43
Unanswered
FedericoRaimondi
asked this question in
Q&A
Replies: 1 comment
-
I dont think a very close value is always expected with the mean of the prediction. Your posterior I think this one is a good explanation of it That said you can always rely on the metrics that work for your specific case. Eg. if you need to compare it to a non bayesian model/baseline, you can always calculate as you did in the example below. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a doubt on R^2 calculation.
After checking the df contribution I noticed that by recalculating R^2 I get quite different results by the one calculated with
plot_model_fit
.I understand that is because we calculate Bayesian R^2 using
arviz.r2_score
and indeed I'm able to arrive at the same number with:The problem is that if I recalculate R2 by using the mean of 'mu' I would expect a similar value compared to the previous one:
This is quite a big difference and it seems to be always the case, no matter the model I develop.
Beta Was this translation helpful? Give feedback.
All reactions