Day 5

Laptops are here!!

Questing Quokka

Let's not upgrade until we have the ethernet cables!

only upgrade now if you already killed your wifi firmware

MNIST

Supervised Learning

LeNet-5 developed by Yann LeCun in 1998

9

Convolutional Neural Network

1. Load Data

2. Setup Network

3. Train Network

4. Predict!

4 Steps

Data

Training

Testing

2

Label

?

Label

But we know the answer!

X_train

y_train

X_test

y_test

Setup Network

NUMBER_OF_CLASSES = 10
model = keras.models.Sequential()
model.add(keras.layers.Conv2D(32, kernel_size=(3, 3),
                             activation='relu',
                             input_shape=first_image.shape))
model.add(keras.layers.Conv2D(64, (3, 3), activation='relu'))
model.add(keras.layers.MaxPooling2D(pool_size=(2, 2)))
model.add(keras.layers.Dropout(0.25))
model.add(keras.layers.Flatten())
model.add(keras.layers.Dense(128, activation='relu'))
model.add(keras.layers.Dropout(0.5))
model.add(keras.layers.Dense(NUMBER_OF_CLASSES, activation='softmax'))
NUMBER_OF_CLASSES = 10

MNIST

Train Network

9

Training Data

Then we check how well the network predicts the testing/validation data!

?

Loss

should go down!

Repeated.. (1 run is called an epoch)

Predict!

Testing Data

0 0 0

1 1 1

2 2 2

3 3 3

4 4 4

5 5 5

6 6 6

7 7 7

8 8 8

9 9 9

Measure how well the CNN does...

UNet by Ronneberger 2015

JOURNAL

create a shared google doc to take notes!

IMPACT Day 5

By Daniel Haehn

IMPACT Day 5

Machine Psychology at UMass Boston. See https://mpsych.orghttps://mpsych.org

  • 8