Repository
Current version released
3 years ago
Dependencies
github.com
Netsaur
neo
neural network deno module usingMaintainers
- Loading (@load1n9)
- CarrotzRule (@carrotzrule123)
Usage
import { NeuralNetwork } from "https://deno.land/x/netsaur/mod.ts";
import { CPUMatrix } from "https://deno.land/x/netsaur/src/cpu/matrix.ts";
import { CPUNetwork } from "https://deno.land/x/netsaur/src/cpu/network.ts";
const net = await new NeuralNetwork({
hidden: [
{ size: 2, activation: "sigmoid" }
],
cost: "crossentropy",
}).setupBackend(false);
const network = (net.network as CPUNetwork);
network.initialize("f32", 2, 3);
const res = network.feedForward(
new CPUMatrix(new Float32Array([
1, 2,
3, 4,
5, 6
]), 2, 3)
);
console.log(res.data);