Skip to content

rlidwka/node-fann

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

node-fann

node-fann is a FANN bindings for Node.js.

FANN (Fast Artificial Neural Network Library) is a free open source neural network library, which implements multilayer artificial neural networks with support for both fully connected and sparsely connected networks.

Installation

  1. Make sure you have glib2 and pkg-config installed.

    These are quite popular tools and should be available in your software repository/ports.

  2. You will need FANN library version >= 2.1.0 (libfann2).

  3. Run npm install fann to install this package.

Example

var fann = require('fann');
var net = new fann.standard(2,3,1);

var data = [
    [[0, 0], [0]],
    [[0, 1], [1]],
    [[1, 0], [1]],
    [[1, 1], [0]],
];

net.train(data, {error: 0.00001});

console.log("xor test (0,0) -> ", net.run([0, 0]));
console.log("xor test (1,0) -> ", net.run([1, 0]));
console.log("xor test (0,1) -> ", net.run([0, 1]));
console.log("xor test (1,1) -> ", net.run([1, 1]));

About

FANN (Fast Artificial Neural Network Library) bindings for Node.js

Resources

Stars

Watchers

Forks

Packages

No packages published