neur
Simple neural network implementation in JS
Installation
Install via npm:
npm install neur
Usage
Step 1: Initialize a network
var Neural = ;var neural = ;
or
var neural = ;
You can config the network by passing the options to the constructor:
var neural = ;
By default, we have a network with 1
hidden layer which has 3
neurons in total. And it will train the input data 10,000
times.
Step 2: Train a network
neural;
Step 3: Predict
var result = neural;
Examples
Example 1: Basic using
var Neural = ; var neural = ; console; // ~0console; // ~1
Example 2: Use Model mapping to train complex data
var Neural = ; var color = ;var guess = ; var result = ; console; // { black: ~0, white: ~1 }