hume
hume

Reputation: 1

i want to apply oversampling to the minority classes.but it displayes an error code

I have a datasets which is imbalanced between normal and abnormal ultrasound liver images.I want to balance the datasets using imageDatagenerator packages but it displays an error TypeError: init() got an unexpected keyword argument 'oversample'

    from keras.preprocessing.image import ImageDataGenerator

train_datagen = ImageDataGenerator(
    rescale=1./255,
    samplewise_center=True,
    samplewise_std_normalization=True,
    horizontal_flip=True,
    vertical_flip=True,
    rotation_range=90,
    brightness_range=[0.5, 1.5],
    zoom_range=0.2,
    shear_range=0.2,
    oversample='majority')

Upvotes: 0

Views: 30

Answers (0)

Related Questions