Class AddConnection
java.lang.Object
net.bmahe.genetics4j.neat.spec.mutation.AddConnection
- All Implemented Interfaces:
MutationPolicy
- Direct Known Subclasses:
ImmutableAddConnection
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether output nodes may be selected as the source of new connections.static AddConnection.Builderbuilder()protected voidcheck()static AddConnectionof(double populationMutationProbability) Construct a new immutableAddConnectioninstance using feed-forward-compatible defaults.abstract double
-
Constructor Details
-
AddConnection
public AddConnection()
-
-
Method Details
-
populationMutationProbability
@Parameter public abstract double populationMutationProbability() -
allowOutputNodeAsSource
@Default public boolean allowOutputNodeAsSource()Indicates whether output nodes may be selected as the source of new connections.Enabling this option allows recurrent topologies such as output-to-hidden and output-to-output connections. Such topologies are intended for evaluation with a recurrent network.
- Returns:
truewhen output nodes may be connection sources
-
check
@Check protected void check() -
builder
-
of
Construct a new immutableAddConnectioninstance using feed-forward-compatible defaults.- Parameters:
populationMutationProbability- The value for thepopulationMutationProbabilityattribute- Returns:
- An immutable AddConnection instance
-