nickkunz / smogn

Synthetic Minority Over-Sampling Technique for Regression
https://pypi.org/project/smogn
GNU General Public License v3.0
319 stars 78 forks source link

Binary label #46

Open laurabrzmeyer opened 1 year ago

laurabrzmeyer commented 1 year ago

Hello, I'm trying to use the smogn method in a dataset where the labels are either 0 (majority) or 1 (minority). So my rg_matrix would be: rg_mtrx = [ [1, 1, 0], ## over-sample ("minority") [0, 0, 0], ## under-sample ("majority") ] However, I'm getting an index error:

image

How can I do the augmentation for a dataset like that ? Thanks!