import { Creature } from "https://deno.land/x/neat_ai@v0.25.0/mod.ts";
Methods
private
addBackConn(focusList?: number[])private
addSelfCon(focusList?: number[])private
evaluateData(json: { input: number[]; output: number[]; }[],
cost: CostInterface,
feedbackLoop: boolean,
private
initialize(options: { layers?: { squash?: string; count: number; }[]; })private
insertNeuron(neuron: Neuron)private
modActivation(focusList?: number[])private
modWeight(focusList?: number[])private
subBackConn(focusList?: number[])private
subSelfCon(focusList?: number[])private
swapNodes(focusList?: number[])private
writeCreatures(neat: Neat, dir: string)addConnection(focusList?: number[], options?)
addNode(focusList?: number[])
applyLearnings(config: BackPropagationConfig)
connect(): Synapse
from: number,
to: number,
weight: number,
type?: "positive" | "negative" | "condition",
Connects the from node to the to node
dispose()
evaluateDir()
dataDir: string,
cost: CostInterface,
feedbackLoop: boolean,
Tests a set and returns the error and elapsed time
evolveDataSet(dataSet: DataRecordInterface[], options: NeatOptions)
Evolves the creature to reach a lower error on a dataset
evolveDir(dataSetDir: string, options: NeatOptions)
Evolves the creature to reach a lower error on a dataset
fromConnections(from: number): Synapse[]
getActivation(indx: number)
getNeuron(pos: number): Neuron
getSynapse(from: number, to: number): Synapse | null
inFocus()
index: number,
focusList?: number[],
checked?,
loadFrom(json: CreatureInternal | CreatureExport, validate: boolean)
makeRandomConnection(indx: number)
modBias(focusList?: number[])
selfConnection(indx: number): SynapseInternal | null
subConnection(focusList?: number[])
subNode(focusList?: number[])
toConnections(to: number): Synapse[]