Activates the creature without calculating traces and such
activateAndTrace(): number[]
Activates the creature
addBackConn(focusList?: number[]): void
addConnection(): void
addSelfCon(focusList?: number[]): void
applyLearnings(config: BackPropagationConfig): boolean
binarySearchForStartIndex(fromIndx: number): number
clearCache(from?,to?,): void
clearState(): void
Clear the context of the creature
connect(): Synapse
Connects the from neuron to the to node
disconnect(): void
Disconnects the from neuron from the to node
dispose(): void
evaluateDir(): { error: number; }
Tests a set and returns the error and elapsed time
evolveDataSet(dataSet: DataRecordInterface[],options: NeatOptions,): Promise<{ error: number; score: number; time: number; }>
Evolves the creature to reach a lower error on a dataset
evolveDir(dataSetDir: string,options: NeatOptions,): Promise<{ error: number; score: number; time: number; }>
Evolves the creature to reach a lower error on a dataset
Convert the creature to a json object
fix(): void
Fix the creature
getSynapse(): Synapse | null
initialize(options: { layers?: { squash?: string; count: number; }[]; }): void
insertNeuron(neuron: Neuron): void
internalJSON(): CreatureInternal
inwardConnections(toIndx: number): Synapse[]
Afferent Connections (Incoming): These are connections to a neuron. The term "afferent" is derived from Latin, where "ad-" means "to" and "ferre" means "carry." So, afferent connections carry signals to a neuron. In the context of biological neuroscience, these would correspond to the synapses that receive signals from the axons of other neurons onto a neuron's dendrites or cell body (soma).
loadFrom(json: CreatureInternal | CreatureExport,validate: boolean,): void
makeRandomConnection(indx: number): Synapse | null
modActivation(focusList?: number[]): void
Mutates the creature with the given method
outwardConnections(fromIndx: number): Synapse[]
Efferent Connections (Outgoing): These are connections from a neuron to other neurons. The term "efferent" comes from "ex-" meaning "out of" and "ferre." Efferent connections carry signals away from the neuron. In biological terms, these would be the synapses where a neuron's axon terminals make connections with other neurons' dendrites or cell bodies, transmitting the signal onward.
propagateUpdate(config: BackPropagationConfig): void
Back propagate the creature
selfConnection(indx: number): SynapseInternal | null
subBackConn(focusList?: number[]): void
subConnection(focusList?: number[]): void
subSelfCon(focusList?: number[]): void
validate(): void
writeCreatures(neat: Neat,dir: string,): void
fromJSON(json: CreatureInternal | CreatureExport,validate?: boolean,): Creature
Convert a json object to a creature