GithubHelp home page GithubHelp logo

playing-with-tensorflow's Introduction

Playing-with-Tensorflow

Deep Neural Network with Tensorflow on the MNIST Benchmark Fashion Dataset.

This is the first coding project I have attempted on my own that was not a problem from a book or online course. The challenge for me in this project was combining concepts that I had previously only used seperately which I have listed below.

  1. Creating an adjustable layer deep neural network model.
  2. Loading a dataset from the internet into python and manipulating the data into the shape that the model will accept.
  3. Using tensorflow, placeholders.
  4. Training using mini batches.
  5. Hyperparameter tuning (running model with different values of lambda for L2_Regularization).

I am aware that the code in this notebook can be greatly simplified to do the same exact task by using the abstraction tools available in tensorflow and keras, however I found implementing the steps myself helped to reinforce the mathmatical concepts of ANN's.

Using skills learned from Coursera, I created an adjustable deep neural network model that accepts an array of training and test data representing thousands of 28 X 28 pixel images and classifies them into 1 of 10 categories.

At the end, you can see the results of training the model with different values of the hyperparameter lambda (used in L2 Regularization). I found that the optimal lamda value for training a deep neural network with 3 32 node hidden layers, a learning rate of .0001 for 1000 epochs with a minibatch size of 500 is around .09 (resulting in the highest test accuracy).

The model takes too long to run on my laptop, so I will not be training it any furthur, the run that you see doubled as a proof of concept to make sure the model did not crash. If i were to modify it, I would use a cross validation set to tune more of the hyperparameters such as the layer dimensions or the learning rate with the goal of acheiving the same or better performance with less computing power. Also, the graphs did not plot correctly in this notebook so I will have to explore more into matplotlib.

playing-with-tensorflow's People

Contributors

bbuckner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.