Giter VIP home page Giter VIP logo

bpnn-rs's Introduction

bpnn-rs

An implementation of BPNN in Rust


Run it now

git clone https://github.com/Nugine/bpnn-rs.git
cd bpnn-rs
cargo build
cargo run

The neural network learned XOR function by training.

iteration:    100    error: 0.353540086202427
iteration:    200    error: 0.32357823287350707
iteration:    300    error: 0.3097202209958916
iteration:    400    error: 0.0023114803357387847
iteration:    500    error: 0.00013376838445333176
iteration:    600    error: 0.000005882603134813142
iteration:    700    error: 0.00000021730736806563241
iteration:    800    error: 0.000000007709918967308345
iteration:    900    error: 0.0000000002713938800516082
iteration:   1000    error: 0.000000000009539007440859954

input: [0, 0]
output: [0]

input: [1, 0]
output: [0.9999999518814118]

input: [0, 1]
output: [0.9999996256794317]

input: [1, 1]
output: [0.0000042431280589255715]

bpnn-rs's People

Contributors

nugine avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

urthor

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.