Sampling_strategy={0, 800, 2:300, 1:400}, said wants to achieve corresponding label sample points
# random_state=42 is not clear
CodePudding user response:
Random_state is random seed, can guarantee program each time you run the same data are random, otherwise, each time you run random data would be different