I have a classification task (predicting DNA methylation) with a somewhat unbalanced dataset - 38% of values are in the minority class, and the other 62% in the majority class.
I have read that one way to work with unbalanced data is to do over-/undersampling, however what i have not found is at what treshold of 'unbalance' or ratio between majority and minority class does it make sense to consider over-/undersampling?
I get it does make sense at 99%/1% and it does not at 50%/50%. But what at 40%/60%? or 20%/80%? Which metrics can I consider to decide whether I want to over-/undersample?