Skip to main content
This release is 125 versions behind 0.165.7 — 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
100%
Published
4 months ago (0.121.0)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Package root>test>addConnection.ts
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); });