GithubHelp home page GithubHelp logo

nikoladucak / neuralnet Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.58 MB

Basic neural network implementation with command line interface.

CMake 2.89% C++ 82.06% C 1.73% Objective-C 0.01% Shell 0.17% Cuda 1.16% Fortran 11.78% Python 0.08% JavaScript 0.07% CSS 0.05%
neural-network eigen cpp

neuralnet's Introduction

Neural network implementation in C++

A simple feed forward neural net with stochastic gradient descent as learning method. Written in an effort to better understand innerworkings of neural networks. That adventure was made easier thanks to Neural Networks and Deep Learing e-book. Also,for efficient matrix multiplication Eigen linear algebra library was used.

Compiling

Dependancies: since Eigen is included within the source code, only boost in necessary.

Clone and navigate to root directory of the repo, then:

mkdir build
cd build
cmake ..
make

After that, nncli executable will be generated in the same directory.

Usage

Usage is centered around serialized neural network files. nncli provides commands to generate, train and feed input to serialized networks. Run nncli help for command line details.

Example

$ nncli test.nn make 2-3-1

Created test.nn with 2-3-1 m_topology.

$ nncli test.nn train example_dataset/xor.tre 1000 100 2.5

Starting training with:
        net: net.nn
        dataset: ../example_dataset/xor.tre
        epochs: 1000
        batch size: 100
        learning rate: 2.5
        training set size:4
        ....
Finished!

$ nncli test.nn feed 1-1
0.028531

neuralnet's People

Contributors

nikoladucak avatar

Watchers

James Cloos avatar  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.