Hi everyone, is there a way to generate a pair plot where (1) the divergences are highlighted for a specific chain and a specific coordinate? I can generate plots with two of those features. But not all three
Here’s what I want to work:
az.plot_pair(trace,
divergences=True,
coords={
'channels':3,
'chain':0
},
var_names=[
"retention",
"saturation_point",
"costumer_aquisition"]);
Which returns the error message: IndexError: boolean index did not match indexed array along dimension 0; dimension is 2000 but corresponding boolean dimension is 8000
.
It’s possible to plot the divergences and one coordinate:
az.plot_pair(trace,
divergences=True,
coords={
'channels':3
},
var_names=[
"retention",
"saturation_point",
"costumer_aquisition"]);
Or to plot one coordinate and one chain:
az.plot_pair(trace.posterior.sel(chain=0),
coords={
'channels':3
},
var_names=[
"retention",
"saturation_point",
"costumer_aquisition"]);
Or even plot one chain using the coord keyword:
az.plot_pair(trace,
coords={
'chain':0
},
var_names=[
"retention",
"saturation_point",
"costumer_aquisition"]);