Skip to content

Commit

Permalink
added starter code for tinkering with simple images
Browse files Browse the repository at this point in the history
  • Loading branch information
ben519 committed Jul 21, 2021
1 parent 506c950 commit 5800b3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lectures/3.1 simple_images.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

# Load the simple images data
train = pd.read_csv('https://raw.githubusercontent.com/ben519/nnets-for-your-dog/master/data/simple_images_train.csv')
train.head()

# Inspect
train.shape

# Plot the first simple image
plt.imshow(train.drop(columns='label').to_numpy()[0].reshape(2,2), cmap='gray', vmin=0, vmax=255)

0 comments on commit 5800b3a

Please sign in to comment.