hint for different kind of sampling

hi .....

i want to preform deffirent kind of sampling that take qual size of each startum and if a class is in minority oversample it and if in majority under sample in......

after useing equal sampling node,how i can tell that if a class is in minority or majority?

thanks alot

Use The GroupBy node on the Class column, and use Count as the aggregation type.