A TypeScript ML library
NPM
npm install kotoamatsukami
Yarn
yarn add kotoamatsukami
import { Network } from "kotoamatsukami";
const network = new Network([2, 3, 1]);
const inputs = [
[0, 0],
[1, 0],
[0, 1],
[1, 1]
];
const targets = [[0], [1], [1], [0]];
network.train(inputs, targets, 1000, true);
console.log(network.predict([0, 1]));