I’m using loo to compare categorical models fit using brms with cmdstan on remote linux instances.
Today I ran into a problem where the loo objects of models fit to the same dataset using different versions of brms and cmdstanr cannot be compared without the warning: Not all models have the same y variable. (‘yhash’ attributes do not match)
And indeed, when I call attributes(loo_object)$yhash, the strings do differ, like so:
You can ignore the warning if you know that the data is the same. Without this warning there would be bigger probability that people accidentally compare models which have fitted using different transformation of y variable. As y can be big, we store only the hash, but it seems the function computing the hash is not stable over different environments. Did you use also the same R version in both cases?
I refreshed my memory on this, and I think only the brms version should matter, and brms has tried to be careful on how the hash is computed to take into account only the values (and not e.g. attribute order). Pinging @paul.buerkner if he has ideas about what has changed from 2.17 to 2.18.7