Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 3.37 KB

README.md

File metadata and controls

45 lines (39 loc) · 3.37 KB

udacity-nd-deep-learning

Project & practices from Udacity Deep Learning Nanodegree

A NeuralNetwork function is created to build the model. The function is in my_answers.py. In the method, there are fundamental layers of feedword and backward passes. End of hidden layers, weights are updated using derivatives of error that is equal to difference between actual value and prediction. Activation function of each layer is sigmoid. Hyperparameters of the trained model are:
* epochs = 4800
* learning rate = 0.35
* hidden nodes = 20
* # output = 1
Trained model can make predictions as below:

The model is run on GPU.

Convolutional Neural Network (CNN) is studied using landmarks-dataset. It may be specialized for the project because it includes data augmentation process. Samples from after data loader:

The CNN is built by three Conv2d layers, MaxPool2d, two fully connected layers, view (flatten layer) & batch_norm2d and batch_norm1d. Activation function is selected as leaky ReLU with -0.2 slope.
Dropout is preferred as regularizer with 0.3 probability.
Stochastic Gradient Descent (SGD) is used as optimizer where learning rate is 1e-2.
Loss is calculated by cross entropy.
Initially, epochs is equal to 20, however it is too low to predict successfully. Therefore, epochs is adjusted as 100.

You can check porject report for detais...