Jeux de données fournis

%load_ext autoreload
%autoreload 2
from utilities import *
from intro_science_donnees import data_dir
ls(data_dir)

Poules et canards

dataset_dir = os.path.join(data_dir, 'Farm')
images = load_images(dataset_dir, "*.jpeg")
image_grid(images, titles=images.index)

Paumes et dos de mains

dataset_dir = os.path.join(data_dir, 'Hands')
images = load_images(dataset_dir, "*.jpeg")
image_grid(images, titles=images.index)

Mélanomes malins et bénins

dataset_dir = os.path.join(data_dir, 'Melanoma')
images = load_images(dataset_dir, "*.jpg")
image_grid(images, titles=images.index)

Smileys gais et tristes

dataset_dir = os.path.join(data_dir, 'Smiley')
images = load_images(dataset_dir, "*.png")
image_grid(images, titles=images.index)

Zéros et uns manuscrits

dataset_dir = os.path.join(data_dir, 'ZeroOne')
images = load_images(dataset_dir, "*.png")
image_grid(images, titles=images.index)