Git Product home page Git Product logo

w251-hw4's Introduction

W251, Homework /#4

Travis R. Metz

May 23, 2020

Part 2 Questions:

In this lab, we will look at the processing of the MNIST data set using ConvnetJS. This demo uses this page: http://cs.stanford.edu/people/karpathy/convnetjs/demo/mnist.html The MNIST data set consists of 28x28 black and white images of hand written digits and the goal is to correctly classify them. Once you load the page, the network starts running and you can see the loss and predictions change in real time. Try the following:

  • Name all the layers in the network, describe what they do.

There is 24x24 input layer, representing image, followed by two sequences of a convolutional layer followed by a pooling layer, and then a softmax classification output layer (for 10 classes). The convolutional layers use a filter to assess each pixel in the context of its surrounding pixels. The pooling layer reduces the size of the representation from the convolutional layer.

  • Experiment with the number and size of filters in each layer. Does it improve the accuracy?

Increasing number and size of first filter modestly descreased validation accuracy of model. Likewise lower both on first convolutional layer reduced validation accuracy.

  • Remove the pooling layers. Does it impact the accuracy?

Yes

  • Add one more conv layer. Does it help with accuracy?

I added another convolutional layer and another max pooling layer and it seemed to increase validation accuracy.

  • Increase the batch size. What impact does it have?

It seemed to slow the improvemnet of training and validation accuracy

  • What is the best accuracy you can achieve? Are you over 99%? 99.5%?

Adding another convolutional and pooling layer and reducing learning rate and momentumcaused it to bounce around between 95% and 99%

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.