Interface NNPlugin

Defines the interface for any neural network plugin. Each method is required. See ann.ts for an example.

Note: All methods that return object actually return a type that extends ConnectionGene, with any plugin-specific data.

Hierarchy

  • NNPlugin

Properties

averageGenes: ((gene1, gene2) => object)

Type declaration

calculateGeneDistance: ((gene1, gene2) => number)

Type declaration

cloneGene: ((gene) => object)

Type declaration

configureCloneGene: ((gene, originalGene) => object)

Type declaration

configureNewGene: ((gene) => object)

Type declaration

configureRandomGene: ((gene) => object)

Type declaration

createNetwork: ((inputSize, outputSize, genes) => {
    process: ((inputs) => number[]);
})

Type declaration

    • (inputSize, outputSize, genes): {
          process: ((inputs) => number[]);
      }
    • Parameters

      Returns {
          process: ((inputs) => number[]);
      }

      • process: ((inputs) => number[])
          • (inputs): number[]
          • Parameters

            • inputs: number[]

            Returns number[]

mutateGeneWeight: ((gene) => void)

Type declaration

Generated using TypeDoc