0.0.2 • Published 3 years ago

neural.js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Neural.js

NPM version Work in progress...

A javascript library to create neural networks with!

Features

  • neural network class that adapts to data
  • customize hidden layers
  • Optimizers:
    • Stochastic Gardient Descend (SGD)

Installation

Install with npm

npm install neural.js --save

Usage

import neural from "neural.js"

// XOR data
const data = [
  {input: [0, 0], output: [0]},
  {input: [0, 1], output: [1]},
  {input: [1, 0], output: [1]},
  {input: [1, 1], output: [0]},
]

const net = new neural.Network({
  learningRate: 0.04,
  iterations: 10000,
  hiddenLayers: [4, 4]
})
net.train(data)

net.run(data.input[0]) // 0.02

Articles I found useful: