nn/index.js
2021-07-31 10:37:17 -04:00

10 lines
276 B
JavaScript

import { Build, Learn, Label } from "./nn.ts";
import { default as Clean } from "./iris.js";
let [ inputs, labels ] = Clean();
let layers = Build(4, 10, 3);
let errors = Learn(inputs, layers, labels, 500, 0.1);
let output = Label(inputs, layers, true);
console.log(output);