jeffheaton / encog-java-core

http://www.heatonresearch.com/encog
Other
743 stars 268 forks source link

Xorneat doesnot work #131

Closed serdarsemen closed 11 years ago

serdarsemen commented 11 years ago

If you add reset() to the last line of public NEATPopulation(final int inputCount, final int outputCount, final int populationSize) population genomes is filled properly. The previous versions has this line but in the master branch it is somehow deleted.

best regards

Note: How can I get a write access to suggest sone fixes? Thx

public NEATPopulation(final int inputCount, final int outputCount, final int populationSize) { super(populationSize, null); this.inputCount = inputCount; this.outputCount = outputCount;

    this.setNEATActivationFunction(new ActivationSteepenedSigmoid());

    if (populationSize == 0) {
        throw new NeuralNetworkError(
                "Population must have more than zero genomes.");
    }
    reset();
}
jeffheaton commented 11 years ago

This has been resolved.