Hi Ishal!



 Ishal_Garg:

It will randomly generate 50-50, when the class weights are [0.5,0.5] or it depends on the dataset distribution?


As the example in my first reply shows, it clearly must depend
on the dataset distribution.
In short, the probability of drawing a sample of a given class is
proportional to the fraction of that class in your dataset times
the weight you assign to that class.
Best.
K. Frank