Solved by albanD in post #6 
              
              
                You cannot provide weights for specific classes right? 
You need to set it for each sample. So you can give 1/num_samples to each sample to get a uniform sampling. 
But with the weights you have in your first post, it should draw the same number of each classes as your weight is proportional to the …