Skip to content

Commit

Permalink
Removed call to ActivationFunctionRegistry.RegisterActivationFunction…
Browse files Browse the repository at this point in the history
… from NeatGenomeFactory.cstr(); a better place for this is in the IExperiment implementation where all the 'wiring up' for an experiment occurs.
  • Loading branch information
colgreen committed Jun 23, 2019
1 parent abd504b commit c9e5f8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/SharpNeatLib/Genomes/Neat/NeatGenomeFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ public NeatGenomeFactory(int inputNeuronCount, int outputNeuronCount,

_genomeIdGenerator = new UInt32IdGenerator();
_innovationIdGenerator = new UInt32IdGenerator();

if (neatGenomeParams.ActivationFn != null)
{
// Register the activation function with the library if it is specified.
ActivationFunctionRegistry.RegisterActivationFunction(neatGenomeParams.ActivationFn);
}
}

/// <summary>
Expand Down

0 comments on commit c9e5f8b

Please sign in to comment.