Visualize_random_images (list_imgs=ls, X_dataset=X_train, y_dataset=y_train)
Print (' * * * Train dataset after augmentation ')
Print (' \ t Total Number of images in Train dataset: {} '. The format (X_train. Shape [0]))
PLT. Bar (np) arange (n_classes), get_count_imgs_per_class (y_train), the align="center")
PLT. Xlabel (' class ')
PLT. Ylabel (' Frequency ')
PLT. Xlim (lancet] [- 1)
PLT. The show ()
Print (' * * * the Validation dataset ')
PLT. Bar (np) arange (n_classes), get_count_imgs_per_class (y_validation), the align="center")
PLT. Xlabel (' class ')
PLT. Ylabel (' Frequency ')
PLT. Xlim (lancet] [- 1)
PLT. The show ()
Error:
NameError: name 'y_train' is not defined
CodePudding user response:
Bosses how to solve excuse meCodePudding user response: