Classification

About

Data Preparation

One-Hot Encoding

Sklearn's OneHotEncoder

Reference: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html

Batches

Reference: https://medium.com/mini-distill/effect-of-batch-size-on-training-dynamics-21c14f7a716e

Image Classification

Keras

Encode image into vector

Although Keras can infer the input image shape, it is good practice to specify it in the first convolutional layer of a Sequential model.

model.add(Conv2D(64, (2, 2), 
					activation='relu',
					input_shape=(256, 256, 3)))