Git Product home page Git Product logo

feedforward-nn's Introduction

Feedforward Neural Network

To learn the basics of neural networks I decided to implement one in python. In my script layers are the processing unit and they function using simply matrix operation such as Hadammard or Dot product. Basic features such as learning modifier (alpha) and bias units are implemented as well.

The NeuralNetwork class simply stacks the layers and feeds the signal forward or backwards depending on the state of the network (processing input or backpropagating)

The network is dynamic meaning that it can be created with an arbitrary number of features and classes as well as an abitraty number of hidden layers (default is one). The hidden layers currently are all initialised with the same neuron count but in future commit I may as well implement custom functions as an argument, that map the depth of the layer to the neuron count. The code comes hardcoded with a XOR example in which the structure of the input should become apparent. The function train() has two required parameters, an input matrix that in each row has a feature vector, and a target matrix in which each row represent the desired output. They are connected by their row index so its important for them to be arranged correctly. Eval() simple takes a one row feature matrix and returns the evaluation.

feedforward-nn's People

Contributors

jozigila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

grcxxi

feedforward-nn's Issues

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.