GithubHelp home page GithubHelp logo

zacwalk / nn Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

A simple multilevel perceptron that can train and run on the fashion mnist dataset.

License: MIT License

C++ 85.14% Python 14.86%

nn's Introduction

nn

A simple multilevel perceptron that can train and run on the fashion mnist dataset. Implemented in C++ with no dependencies.

Currently only implemented with floats but I plan to experiment with the accuracy of using 8-bit log weights. Interestingly the C++ version seems to outperform my pytorch experiments. That might just be because I am not very familiar with pytorch.

Current output:

Neural Network Summary:         [f := Sigmoid]

Layer 1  784 neurons
Layer 2  100 neurons
Layer 3   50 neurons
Layer 4   10 neurons

[EPOCH    1] [LOSS 0.14729] [ACCURACY  47787 out of 60000]
[EPOCH    2] [LOSS 0.11223] [ACCURACY  50813 out of 60000]
[EPOCH    3] [LOSS 0.10208] [ACCURACY  51744 out of 60000]
[EPOCH    4] [LOSS 0.09830] [ACCURACY  51982 out of 60000]
[EPOCH    5] [LOSS 0.09405] [ACCURACY  52323 out of 60000]
[EPOCH    6] [LOSS 0.09002] [ACCURACY  52710 out of 60000]
[EPOCH    7] [LOSS 0.08490] [ACCURACY  53088 out of 60000]
[EPOCH    8] [LOSS 0.08296] [ACCURACY  53326 out of 60000]
[EPOCH    9] [LOSS 0.08291] [ACCURACY  53331 out of 60000]
[EPOCH   10] [LOSS 0.08029] [ACCURACY  53493 out of 60000]

[EVALUATION] [LOSS 0.09102] [ACCURACY   8736 out of 10000]

Time taken: 15 seconds

nn's People

Contributors

zacwalk 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.