I am aware of the
rename_vars method to change the names of the variables in an InferenceData object. However, I am wondering if there is a way to also reassign the values of a categorical variable, for example from integers to strings.
.astype what you are searching for?
Hi thanks for the reply! I think what I wanted to do was rename the coordinates after fitting the model, e.g. from 0 to ‘coord0’ and from 1 to ‘coord1’ or something like that. I don’t think I found a solution but it’s not an issue for me anymore either.