DATA_310_Notes

Notes and code from Data_310 Lectures

View the Project on GitHub c-hibbert/DATA_310_Notes

Week 2

July 14

Question 1

Original Photo

Filter 1: Horizontal Only Lines

Filter 2: Vertical Only Lines

Filter 3: A Mix

Question 2

Question 3

Horizontal-Line Pooling

Vertical-Line Pooling

Mix-Lined Pooling

Question 4

Question 5

Question 6

July 15

Convolutional Horses and Humans

Question 1

Question 2

Question 3

Question 4

Question 5

The code is as follows

model = tf.keras.models.Sequential([
tf.keras.layers.Conv2D(16, (3,3), activation='relu', 
                       input_shape=(300, 300, 3)),
tf.keras.layers.MaxPooling2D(2, 2),
tf.keras.layers.Conv2D(32, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Conv2D(64, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(512, activation='relu'),
tf.keras.layers.Dense(1, activation='sigmoid')
])

Question 6

Question 7

Regression

Question 1

Quesiton 2

Overfit and Underfit

Question 1