Uses of Interface
net.bmahe.genetics4j.neat.Connection
Package
Description
-
Uses of Connection in net.bmahe.genetics4j.neat
Modifier and TypeFieldDescriptionprivate final Map
<Integer, Set<Connection>> FeedForwardNetwork.backwardConnections
private final List
<Connection> FeedForwardNetwork.connections
Modifier and TypeMethodDescriptionstatic Connection
Connection.copyOf
(Connection original) static Connection
Connection.of
(int from, int to, float weight, boolean isEnabled, int innovation) Modifier and TypeMethodDescriptionstatic Map
<Integer, Set<Connection>> NeatUtils.computeBackwardConnections
(List<Connection> connections) Modifier and TypeMethodDescriptionstatic Connection
Connection.copyOf
(Connection original) static ImmutableConnection
ImmutableConnection.copyOf
(Connection instance) Creates an immutable copy of aConnection
value.final Connection.Builder
ImmutableConnection.Builder.from
(Connection instance) Fill a builder with attribute values from the providedConnection
instance.Modifier and TypeMethodDescriptionstatic float
NeatUtils.compatibilityDistance
(List<Connection> firstConnections, List<Connection> secondConnections, float c1, float c2, float c3) static Map
<Integer, Set<Connection>> NeatUtils.computeBackwardConnections
(List<Connection> connections) NeatUtils.computeBackwardLinks
(List<Connection> connections) NeatUtils.computeDeadNodes
(List<Connection> connections, Map<Integer, Set<Integer>> forwardConnections, Map<Integer, Set<Integer>> backwardConnections, Set<Integer> outputNodeIndices) Working backward from the output nodes, we identify the nodes that did not get visited as dead nodesNeatUtils.computeForwardLinks
(List<Connection> connections) NeatUtils.partitionLayersNodes
(Set<Integer> inputNodeIndices, Set<Integer> outputNodeIndices, List<Connection> connections) ModifierConstructorDescriptionFeedForwardNetwork
(Set<Integer> _inputNodeIndices, Set<Integer> _outputNodeIndices, List<Connection> _connections, Function<Float, Float> _activationFunction) -
Uses of Connection in net.bmahe.genetics4j.neat.chromosomes
ModifierConstructorDescriptionNeatChromosome
(int _numInputs, int _numOutputs, float _minWeightValue, float _maxWeightValue, List<Connection> _connections) -
Uses of Connection in net.bmahe.genetics4j.neat.combination
Modifier and TypeMethodDescriptionprivate void
NeatChromosomeCombinator.insertInlinksCache
(Map<Integer, Set<Integer>> linksCache, Connection connection) private boolean
NeatChromosomeCombinator.linksCacheContainsConnection
(Map<Integer, Set<Integer>> linksCache, Connection connection) protected boolean
NeatChromosomeCombinator.shouldReEnable
(Connection chosenParent, Connection otherParent) -
Uses of Connection in net.bmahe.genetics4j.neat.mutation.chromosome
Modifier and TypeMethodDescriptionprotected Connection
NeatChromosomeConnectionWeightMutationHandler.mutateConnection
(Connection connection, double perturbationRatio, Supplier<Float> distributionValueSupplier, Supplier<Float> distributionNewValueSupplier, float minValue, float maxValue) Modifier and TypeMethodDescriptionprotected abstract List
<Connection> AbstractNeatChromosomeConnectionMutationHandler.mutateConnection
(T mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeAddNodeMutationHandler.mutateConnection
(AddNode mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeCreepMutationHandler.mutateConnection
(CreepMutation creepMutation, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeRandomMutationHandler.mutateConnection
(RandomMutation randomMutation, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeSwitchStateHandler.mutateConnection
(SwitchStateMutation switchStateMutation, NeatChromosome neatChromosome, Connection oldConnection, int i) Modifier and TypeMethodDescriptionprotected abstract List
<Connection> AbstractNeatChromosomeConnectionMutationHandler.mutateConnection
(T mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeAddNodeMutationHandler.mutateConnection
(AddNode mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i) protected Connection
NeatChromosomeConnectionWeightMutationHandler.mutateConnection
(Connection connection, double perturbationRatio, Supplier<Float> distributionValueSupplier, Supplier<Float> distributionNewValueSupplier, float minValue, float maxValue) protected List
<Connection> NeatChromosomeCreepMutationHandler.mutateConnection
(CreepMutation creepMutation, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeRandomMutationHandler.mutateConnection
(RandomMutation randomMutation, NeatChromosome neatChromosome, Connection oldConnection, int i) protected List
<Connection> NeatChromosomeSwitchStateHandler.mutateConnection
(SwitchStateMutation switchStateMutation, NeatChromosome neatChromosome, Connection oldConnection, int i)