Coder Social home page Coder Social logo

sar-gupta / neural-network-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 22.0 22.33 MB

Implementation of a neural network from scratch in python.

License: MIT License

Python 100.00%
deep-learning hacktoberfest machine-learning mnist neural-network python python3

neural-network-from-scratch's People

Contributors

sar-gupta avatar ulziibuyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

neural-network-from-scratch's Issues

Add training progress

During long waits of training and saving, I was getting confused if the program is stuck. Perhaps progress like the following would help? I can create separate PR or commit to #3 if you think its a good idea.

Starting...
Training...
== EPOCH: 0 / 5 ==
Training with 60000 / 60000
Error: 9.15849543933
== EPOCH: 1 / 5 ==
Training with 23692 / 60000
...
Saving...
Testing...
Accurracy: 7.87

PEP for Readability

Class names are usually CamelCased, and Python code should follow PEP to maximize readability. The importance of readability is to ensure fellow programmers can better learn from code and track bugs. Nonetheless, your code is generally very readable. Good job! ๐Ÿ˜Š

Error values always return nan

== EPOCH: 1 / 5 ==
Training with 2001 / 60000
/Users/dikshant/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:101: RuntimeWarning: divide by zero encountered in log
/Users/dikshant/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py:101: RuntimeWarning: invalid value encountered in multiply
Training with 59951 / 60000/ 60000
Error: nan
== EPOCH: 2 / 5 ==
Training with 59951 / 60000 / 6000060000
Error: nan
== EPOCH: 3 / 5 ==
Training with 59951 / 60000
Error: nan
== EPOCH: 4 / 5 ==
Training with 59951 / 600001551 / 60000
Error: nan
== EPOCH: 5 / 5 ==
Training with 59951 / 60000
Error: nan

this is the output on a run on tensorflow's version of mnist

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.