plot_val_with_title is defined twice in adjacent cells
def plot_val_with_title(idxs, title):
imgs = np.stack([data.val_ds[x][0] for x in idxs])
title_probs = [probs[x] for x in idxs]
print(title)
return plots(data.val_ds.denorm(imgs), rows=1, titles=title_probs)
and 2 cells later:
def plot_val_with_title(idxs, title):
imgs = [load_img_id(data.val_ds,x) for x in idxs]
title_probs = [probs[x] for x in idxs]
print(title)
return plots(imgs, rows=1, titles=title_probs, figsize=(16,8))
Issues with DL Part 1 notebooks:
lesson1.ipynb
plot_val_with_title is defined twice in adjacent cells
and 2 cells later:
one or the other should probably be deleted?
Thanks.