2021-07-29 20:53:31 -04:00
|
|
|
import { Build, Learn, Label } from "./nn.ts";
|
2021-07-31 10:05:55 -04:00
|
|
|
import { default as Clean } from "./iris.js";
|
2021-07-29 20:53:31 -04:00
|
|
|
|
2021-07-31 10:37:17 -04:00
|
|
|
let [ inputs, labels ] = Clean();
|
2021-07-29 20:53:31 -04:00
|
|
|
|
2021-07-31 10:37:17 -04:00
|
|
|
let layers = Build(4, 10, 3);
|
|
|
|
let errors = Learn(inputs, layers, labels, 500, 0.1);
|
|
|
|
let output = Label(inputs, layers, true);
|
2021-07-31 10:05:55 -04:00
|
|
|
|
2021-07-31 10:37:17 -04:00
|
|
|
console.log(output);
|