UNPKG

@alenaksu/neatjs

Version:

NEAT (Neuroevolution of Augmenting Topologies) implementation in JavaScript

11 lines 254 B
import { uuid } from '../utils'; export class NodeGene { constructor(type, id = uuid()) { this.id = id; this.type = type; } copy() { return new NodeGene(this.type, this.id); } } //# sourceMappingURL=NodeGene.js.map