@mattmazzola/perceptron
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

perceptron

Build Status

Perceptron library written in TypeScript

Installation

npm install --save @mattmazzola/perceptron

Usage

const and = new Perceptron(0.5, 0.1);

and.train([
  { vector: [0,0], output: false },
  { vector: [1,0], output: false },
  { vector: [0,1], output: false },
  { vector: [1,1], output: true }
]);

and.perceive([0,1]); // false

Package Sidebar

Install

npm i @mattmazzola/perceptron

Weekly Downloads

0

Version

0.3.0

License

MIT

Last publish

Collaborators

  • mattmazzola