Sampling Methods for GLMNET

I have a very imbalanced dataset. I want to upsample when tuning and fitting a logistic-ridge in glmnet and grouped lasso in gglasso. Is there any easy way to do it?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.