gravatar for saber mohammadi

3 hours ago by

Hello everyone.
I have a data set containing 1406 class 0 and 1406 class 1 instances. I want to split my data set to training and test data set by python's sklearn library and at the same time, I want my training data set to be balanced after splitting. I'm wondering whether this issue would be handled by sklearn package or not?
I would appreciate your help.

Source link