public void TestInitialize() { random = new ThreadSafeRandom(); modelInitializer = new FullyConnectedNeuralNetworkInitializer(random); sigmoidActivationFunction = new SigmoidActivationFunction(); modelExecuter = new FullyConnectedNeuralNetworkExecuter(sigmoidActivationFunction); modelBreeder = new GeneticModelBreeder(modelInitializer, random); populationBreeder = new PolygamousPopulationBreeder(modelBreeder, random); sut = new GeneticLearner(populationSize, selectionSize, modelInitializer, modelExecuter, populationBreeder, random); }
public PolygamousPopulationBreeder(IModelBreeder modelBreeder, ThreadSafeRandom random) { this.modelBreeder = modelBreeder; this.random = random; }