Skip to main content
Home
This release is 136 versions behind 0.168.1 — the latest version of @stsoftware/neat-ai. Jump to latest

Built and signed on GitHub Actions

NEAT Neural Network. This project is a unique implementation of a neural network based on the NEAT (NeuroEvolution of Augmenting Topologies) algorithm, written in DenoJS using TypeScript.

This package works with Deno
This package works with Deno
JSR Score
94%
Published
5 months ago (0.121.0)
Package root>test>SyncV5.ts
import { generate as generateV5 } from "jsr:/@std/uuid@1.0.4/v5"; import { generate as generateV5Sync } from "../src/architecture/SyncV5.ts"; import { assertEquals } from "jsr:@std/assert@^1.0.8"; Deno.test("SyncV5", async () => { const tmp = { neurons: [ { uuid: "a" }, { uuid: "b" }, { uuid: "c" }, ], synapses: [ { fromUUID: "a", toUUID: "b" }, { fromUUID: "b", toUUID: "c" }, { fromUUID: "c", toUUID: "a" }, ], }; const ns = "843dc7df-f60b-47f6-823d-2992e0a4295d"; const te = new TextEncoder(); const txt = JSON.stringify(tmp); const utf8 = te.encode(txt); const uuid: string = await generateV5(ns, utf8); assertEquals(uuid, "8e773d10-e553-5115-9814-22c0b788d800"); const uuidSync: string = generateV5Sync(ns, utf8); assertEquals(uuidSync, uuid); });