Skip to content

mathletedev/kotoamatsukami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ktoamatsukami

A TypeScript ML library

Installation

NPM

npm install kotoamatsukami

Yarn

yarn add kotoamatsukami

Example

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]));

License

Apache License 2.0