You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Augmentation can be used to oversample a category.
Imagined usage would look something like this:
aug = augmenty.load(...)
def is_positive(example):
"""return true if the example contains an entity"""
if example.y.cats["positive"] == 1:
return True
return False
upsampled_corpus = augumenty.oversample(corpus, augmenter=aug, conditional=is_positive, n=1000)
The text was updated successfully, but these errors were encountered:
Augmentation can be used to oversample a category.
Imagined usage would look something like this:
The text was updated successfully, but these errors were encountered: