Thanks Tom, I followed your suggestion, but apparently classes remain unbalanced. I can’t understand well how weights work in sampler, because I’ve tried with different approaches and I can’t control the resulting number of instances.