Skip to content
Advertisement

Tag: oversampling

Pandas oversampling ragged sequential data

Trying to use pandas to oversample my ragged data (data with different lengths). Given the following data samples: Data (groups are separated with — for convince): Targets: I would like to balance the minority class. In the sample above, target 1 is the minority class with 2 samples, for ids 1 & 3. I’m looking for a way to oversample

Advertisement