public void Initialize(string name, XmlElement xmlConfig) { NeatEvolutionAlgorithmParameters = new NeatEvolutionAlgorithmParameters(); NeatEvolutionAlgorithmParameters.SpecieCount = 10; // The NeatGenomeParameters object is passed to the NeatGenomeFactory. // The NeatGenomeFactory creates a NeatGenome (which is an INetworkDefinition). // The NeatGenome is constructed using the NeatGenomeParameters. // For example, the NeatGenomeParameters define what activation function to use. NeatGenomeParameters = new NeatGenomeParameters(); // Create fast cyclic activation scheme with 3 evaluations for convergence _activationScheme = NetworkActivationScheme.CreateCyclicFixedTimestepsScheme(3, true); _decoder = new FastCyclicNeatGenomeDecoder(_activationScheme); }
public override void Initialize(string name, XmlElement xmlConfig) { base.Initialize(name, xmlConfig); _decoder = new FastCyclicNeatGenomeDecoder(DefaultNetworkActivationScheme); }
public override void Initialize(string name, XmlElement xmlConfig) { base.Initialize(name, xmlConfig); _inputCount = XmlUtils.GetValueAsInt(xmlConfig, "InputCount"); _decoder = new FastCyclicNeatGenomeDecoder(DefaultNetworkActivationScheme); }