Skip to content

MerEsf/Neural_Networks_Deep_Learning

Repository files navigation

Multi-class Image Classification (TensorFlow)

SIGNS Dataset

alt text

Approach:

One Hot Encodings, SoftMax Function, Xavier Initialization for weights and Zero Initialization for biases

Results:

alt text

Binary Image Classification

1) Planar data classification

The data looks like a "flower" with some red (label y=0) and some blue (y=1) points. The goal is to build a model to fit this data.

alt text

Approach:

2-class (binary) classification neural network with a single hidden layer

Results:

Logistic Regression:

alt text

Neural Network (5 hidden layer):

alt text

Learning outcomes:

  • Accuracy of the neural network ( around 90%) is high compared to Logistic Regression (47%) (as the dataset is not linearly separable). So the model has learned the leaf patterns of the flower.
  • The larger models (with more hidden units) are able to fit the training set better, until eventually the largest models overfit the data.
  • The best hidden layer size seems to be around n_h = 5. Indeed, a value around here seems to fits the data well without also incurring noticeable overfitting.

Reference:

2) Cat vs non-Cat Classification

Building a deep network, and applying it to cat vs non-cat classification (supervised learning)

Approach:

2-class (binary) classification neural network (2-layer and 4-layer)

Results:

2-layer (72% accuracy):

alt text

4-layer (80% accuracy):

alt text

About

Planar data classification with a hidden layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages