brocolis
v0.1.3
Published
> single-neuron made in JS
Downloads
2
Readme
brocolis
single-neuron made in JS
Install
yarn add brocolis
// npm i -S brocolis
Usage
const brocolis = require('brocolis')
const sigmoid = require('brocolis/lib/activationFunctions/sigmoid')
brocolis({
activationFunction: sigmoid
})
.train({
input: [
// && example
[1, 1, 1],
[1, 0, 1],
[0, 1, 1],
[0, 0, 1]
],
output: [1, 0, 0, 0],
interactions: 10000
})
.predict([[1, 1, 1]]) // [ ~0.98 ]