text_html_output_1.png application_vnd.jupyter.stderr_output_1.png
from fastai.vision import *
data = ImageList.from_folder('/kaggle/input/turkish-lira-banknote-dataset/').random_split_by_pct().label_from_folder().transform(get_transforms(), size=122).databunch()

learner = cnn_learner(data, models.resnet18, metrics=accuracy)
learner.fit(5)

interp = ClassificationInterpretation.from_learner(learner)

learner2 = cnn_learner(data, models.resnet152, metrics=accuracy)
learner2.fit(3)

interp2 = ClassificationInterpretation.from_learner(learner2)
interp2.plot_top_losses(9, figsize=(10, 10))