This release is 125 versions behind 0.165.7 — the latest version of @stsoftware/neat-ai. Jump to latest
@stsoftware/neat-ai@0.121.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
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.
import { Creature } from "../src/Creature.ts"; import { creatureValidate } from "../src/architecture/CreatureValidate.ts"; import { AddConnection } from "../src/mutate/AddConnection.ts"; import { AddNeuron } from "../src/mutate/AddNeuron.ts"; ((globalThis as unknown) as { DEBUG: boolean }).DEBUG = true; Deno.test("addConnection", () => { const creature = new Creature(2, 1); creatureValidate(creature); const addNeuron = new AddNeuron(creature); for (let i = 10; i--;) { addNeuron.mutate(); } const addConnection = new AddConnection(creature); for (let i = 10; i--;) { addConnection.mutate(); } creatureValidate(creature); });