Coder Social home page Coder Social logo

mnist-mlp's Introduction

MNIST-mlp

MLP for the MNIST dataset. Link to pdf writeup.

log

10/26

Testing sigmoid function.

10/27

Working on backwards deltas.

10/28

Weight update uses update from previous backprop.

10/29

Confusion matrix goes deeply negative or positive around 5 epochs. I know the sigmoid function sometimes draws RuntimeWarning: overflow encountered in multiply (near beginning). Need to print some lines of matrices either to .csv's or screen to debug what's happening. Was likely from activation issues.

It could also possibly be the way I activate the neurons. I'm still unclear about how we handle target errors on updates. Investigate further.

10/30

Convert t (target) and n_o arrays to get max arg, then compute confusion matrix. Shuffle the dataset for every epoch. But first, you need to bind every target array to corresponding input vector.

Was able to get better results (doesn't shoot off to inf or nan) by converting targets to 0.9 or 0.1 before calculating deltas but % correct stays constant (<20% and stays absolutely constant). Confusion matrix doesn't seem to be a problem. Shuffling could help?

10/31

Added shuffle and weight decay to training function.

On second epoch, output neurons values (dot product of hidden neurons and hidden weights) are too low to go through activation; they just become 0.

This causes predictions matrix to become all 1's after the first epoch. This matrix is dotted with the target array to construct a confusion matrix. The confusion matrix gives bad results because of this bug.

Changed train.py to read directly from file. Shuffling arrays loaded from dat files might've cause some issues.

Need to work on why this confusion matrix is not working. Should start looking at places I modify predictions.

Read in all with memmap, then take a random sampling of the data.

mnist-mlp's People

Contributors

carsayao avatar

Watchers

 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.