Explore

class jlpy.pytorch.vision.image_classification.lions_cheetahs.Explore

Bases: object

Prepare and Explore Data.

This is the first step to explore the source data and to become familiar with the data.

Methods

__init__

cnt_imgs

Count images by the category of the labels.

samp_imgs

Show sample images from the category of each label.

static cnt_imgs() None

Count images by the category of the labels.

static samp_imgs() None

Show sample images from the category of each label.

  1. Grouping the dataframe by the column ‘label’.

  2. Sampling 3 images from each group.

  3. Shuffling the order of the new dataframe.

  4. Creating a plot with 3x2 figures.

  5. Loading the sample images.

  6. Plotting the figures.