|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.Configuration
com.anji.neat.NeatConfiguration
Extension of JGAP configuration with NEAT-specific features added.
Field Summary | |
static java.lang.String |
CHROM_COMPAT_COMMON_COEFF_KEY
properties key, speciation chromosome compatibility common coefficient |
static java.lang.String |
CHROM_COMPAT_DISJOINT_COEFF_KEY
properties key, speciation chromosome compatibility disjoint coefficient |
static java.lang.String |
CHROM_COMPAT_EXCESS_COEFF_KEY
properties key, speciation chromosome compatibility excess coefficient |
static int |
DEFAULT_POPUL_SIZE
default population size |
static float |
DEFAULT_SURVIVAL_RATE
default survival rate |
static java.lang.String |
ELITISM_KEY
properties key, elitism enabled |
static java.lang.String |
ELITISM_MIN_SPECIE_SIZE_KEY
properties key, minimum size a specie must be to produce an elite member |
static java.lang.String |
ID_FACTORY_KEY
properties key, file in which unique ID sequence number is stored |
static java.lang.String |
INITIAL_TOPOLOGY_ACTIVATION_INPUT_KEY
properties key, activation function type of input neurons |
static java.lang.String |
INITIAL_TOPOLOGY_ACTIVATION_KEY
properties key, activation function type of neurons |
static java.lang.String |
INITIAL_TOPOLOGY_ACTIVATION_OUTPUT_KEY
properties key, activation function type of output neurons |
static java.lang.String |
INITIAL_TOPOLOGY_FULLY_CONNECTED_KEY
properties key, enable fully connected initial topologies |
static java.lang.String |
INITIAL_TOPOLOGY_NUM_HIDDEN_NEURONS_KEY
properties key, number of hidden neurons in initial topology |
static java.lang.String |
POPUL_SIZE_KEY
properties key, population size |
static java.lang.String |
RESPONSE_SIZE_KEY
properties key, dimension of neural net response |
static java.lang.String |
SPECIATION_THRESHOLD_KEY
properties key, speciation threshold |
static java.lang.String |
STIMULUS_SIZE_KEY
properties key, dimension of neural net stimulus |
static java.lang.String |
SURVIVAL_RATE_KEY
properties key, survival rate |
static java.lang.String |
TOPOLOGY_MUTATION_CLASSIC_KEY
properties key, topology mutation type; if true, use "classic" method where at most a single topological mutation occurs per generation per individual |
static java.lang.String |
WEIGHT_MAX_KEY
properties key, maximum connection weight |
static java.lang.String |
WEIGHT_MIN_KEY
properties key, minimum connection weight |
static java.lang.String |
WEIGHTED_SELECTOR_KEY
properties key, enable weighted selection process |
Constructor Summary | |
NeatConfiguration(Properties newProps)
See Parameter Details for specific property settings. |
Method Summary | |
CloneReproductionOperator |
getCloneOperator()
|
NeatCrossoverReproductionOperator |
getCrossoverOperator()
|
double |
getMaxConnectionWeight()
|
double |
getMinConnectionWeight()
|
void |
load()
Load from persistence. |
void |
logIdMaps(org.apache.log4j.Logger aLogger,
org.apache.log4j.Priority pri)
log stats for id maps |
ConnectionAllele |
newConnectionAllele(java.lang.Long srcNeuronId,
java.lang.Long destNeuronId)
factory method to construct new connection allele from neuron srcNeuronId to
neuron destNeuronId according to NEAT add connection mutation; if a previous
mutation has occurred adding a connection between srcNeuronId and destNeuronId, returns
connection with that id; otherwise, new innovation id |
NeuronAllele |
newNeuronAllele(java.lang.Long connectionId)
Factory method to construct new neuron allele which has replaced connection connectionId according to NEAT add neuron mutation. |
NeuronAllele |
newNeuronAllele(NeuronType type)
factory method to construct new neuron allele with unique innovation ID of specified type |
void |
store()
Store to persistence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ID_FACTORY_KEY
public static final float DEFAULT_SURVIVAL_RATE
public static final int DEFAULT_POPUL_SIZE
public static final java.lang.String STIMULUS_SIZE_KEY
public static final java.lang.String RESPONSE_SIZE_KEY
public static final java.lang.String SURVIVAL_RATE_KEY
public static final java.lang.String TOPOLOGY_MUTATION_CLASSIC_KEY
public static final java.lang.String WEIGHT_MAX_KEY
public static final java.lang.String WEIGHT_MIN_KEY
public static final java.lang.String POPUL_SIZE_KEY
public static final java.lang.String CHROM_COMPAT_EXCESS_COEFF_KEY
public static final java.lang.String CHROM_COMPAT_DISJOINT_COEFF_KEY
public static final java.lang.String CHROM_COMPAT_COMMON_COEFF_KEY
public static final java.lang.String SPECIATION_THRESHOLD_KEY
public static final java.lang.String ELITISM_KEY
public static final java.lang.String ELITISM_MIN_SPECIE_SIZE_KEY
public static final java.lang.String WEIGHTED_SELECTOR_KEY
public static final java.lang.String INITIAL_TOPOLOGY_FULLY_CONNECTED_KEY
public static final java.lang.String INITIAL_TOPOLOGY_NUM_HIDDEN_NEURONS_KEY
public static final java.lang.String INITIAL_TOPOLOGY_ACTIVATION_KEY
public static final java.lang.String INITIAL_TOPOLOGY_ACTIVATION_INPUT_KEY
public static final java.lang.String INITIAL_TOPOLOGY_ACTIVATION_OUTPUT_KEY
Constructor Detail |
public NeatConfiguration(Properties newProps) throws InvalidConfigurationException
newProps
-
InvalidConfigurationException
NeatConfiguration#init(Properties)
Method Detail |
public NeuronAllele newNeuronAllele(NeuronType type)
type
type
-
public NeuronAllele newNeuronAllele(java.lang.Long connectionId)
connectionId
according to NEAT add neuron mutation. If a previous mutation has
occurred adding a neuron on connection connectionId, returns a neuron with that id -
otherwise, a new id.
connectionId
-
public ConnectionAllele newConnectionAllele(java.lang.Long srcNeuronId, java.lang.Long destNeuronId)
srcNeuronId
to
neuron destNeuronId
according to NEAT add connection mutation; if a previous
mutation has occurred adding a connection between srcNeuronId and destNeuronId, returns
connection with that id; otherwise, new innovation id
srcNeuronId
- destNeuronId
-
public CloneReproductionOperator getCloneOperator()
public NeatCrossoverReproductionOperator getCrossoverOperator()
public double getMaxConnectionWeight()
public double getMinConnectionWeight()
public void load() throws InvalidConfigurationException
InvalidConfigurationException
public void store() throws InvalidConfigurationException
InvalidConfigurationException
public void logIdMaps(org.apache.log4j.Logger aLogger, org.apache.log4j.Priority pri)
aLogger
- pri
- priority
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |