org.encog.ml.ea.codec

## Interface GeneticCODEC

- All Known Implementing Classes:
    GenomeAsPhenomeCODEC, HyperNEATCODEC, MLEncodableCODEC, NEATCODEC, PrgCODEC

      public interface GeneticCODEC

  A CODEC defines how to transfer between a genome and phenome. Every CODEC should support genome to phenome. However, not every code can transform a phenome into a genome.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MLMethod` | `decode(Genome genome)` Decode the specified genome into a phenome.
    `Genome` | `encode(MLMethod phenotype)` Attempt to build a genome from a phenome.

- - ### Method Detail

    - #### decode

          MLMethod decode(Genome genome)

      Decode the specified genome into a phenome. A phenome is an actual instance of a genome that you can query.
      Parameters:
        `genome` - The genome to decode.
      Returns:
        The phenome.

    - #### encode

          Genome encode(MLMethod phenotype)

      Attempt to build a genome from a phenome. Note: not all CODEC's support this. If it is unsupported, an exception will be thrown.
      Parameters:
        `phenotype` - The phenotype.
      Returns:
        The genome.

Copyright © 2014. All Rights Reserved.