1
|
|
package net.bmahe.genetics4j.neat.mutation.chromosome; |
2
|
|
|
3
|
|
import java.util.List; |
4
|
|
import java.util.function.Supplier; |
5
|
|
import java.util.random.RandomGenerator; |
6
|
|
|
7
|
|
import org.apache.commons.lang3.Validate; |
8
|
|
import org.apache.logging.log4j.LogManager; |
9
|
|
import org.apache.logging.log4j.Logger; |
10
|
|
|
11
|
|
import net.bmahe.genetics4j.core.chromosomes.Chromosome; |
12
|
|
import net.bmahe.genetics4j.core.mutation.chromosome.ChromosomeMutationHandler; |
13
|
|
import net.bmahe.genetics4j.core.spec.chromosome.ChromosomeSpec; |
14
|
|
import net.bmahe.genetics4j.core.spec.mutation.MutationPolicy; |
15
|
|
import net.bmahe.genetics4j.core.spec.statistics.distributions.Distribution; |
16
|
|
import net.bmahe.genetics4j.core.util.DistributionUtils; |
17
|
|
import net.bmahe.genetics4j.neat.Connection; |
18
|
|
import net.bmahe.genetics4j.neat.chromosomes.NeatChromosome; |
19
|
|
import net.bmahe.genetics4j.neat.spec.NeatChromosomeSpec; |
20
|
|
import net.bmahe.genetics4j.neat.spec.mutation.NeatConnectionWeight; |
21
|
|
|
22
|
|
public class NeatChromosomeConnectionWeightMutationHandler implements ChromosomeMutationHandler<NeatChromosome> { |
23
|
|
|
24
|
|
public static final Logger logger = LogManager.getLogger(NeatChromosomeConnectionWeightMutationHandler.class); |
25
|
|
|
26
|
|
private final RandomGenerator randomGenerator; |
27
|
|
|
28
|
|
public NeatChromosomeConnectionWeightMutationHandler(final RandomGenerator _randomGenerator) { |
29
|
|
Validate.notNull(_randomGenerator); |
30
|
|
|
31
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
32
|
|
} |
33
|
|
|
34
|
|
@Override |
35
|
|
public boolean canHandle(final MutationPolicy mutationPolicy, final ChromosomeSpec chromosome) { |
36
|
|
Validate.notNull(mutationPolicy); |
37
|
|
Validate.notNull(chromosome); |
38
|
|
|
39
|
9
1. canHandle : removed conditional - replaced equality check with true → KILLED
2. canHandle : replaced boolean return with true for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::canHandle → KILLED
3. canHandle : removed conditional - replaced equality check with false → KILLED
4. canHandle : Substituted 1 with 0 → KILLED
5. canHandle : Substituted 0 with 1 → KILLED
6. canHandle : removed conditional - replaced equality check with false → KILLED
7. canHandle : negated conditional → KILLED
8. canHandle : removed conditional - replaced equality check with true → KILLED
9. canHandle : negated conditional → KILLED
|
return mutationPolicy instanceof NeatConnectionWeight && chromosome instanceof NeatChromosomeSpec; |
40
|
|
} |
41
|
|
|
42
|
|
protected float perturbateWeight(final float weight, final float disturbance, final float minValue, |
43
|
|
final float maxValue) { |
44
|
|
Validate.isTrue(minValue <= maxValue); |
45
|
|
|
46
|
1
1. perturbateWeight : Replaced float addition with subtraction → KILLED
|
float newWeight = weight + disturbance; |
47
|
4
1. perturbateWeight : changed conditional boundary → SURVIVED
2. perturbateWeight : negated conditional → KILLED
3. perturbateWeight : removed conditional - replaced comparison check with true → KILLED
4. perturbateWeight : removed conditional - replaced comparison check with false → KILLED
|
if (newWeight > maxValue) { |
48
|
|
newWeight = maxValue; |
49
|
4
1. perturbateWeight : changed conditional boundary → SURVIVED
2. perturbateWeight : negated conditional → KILLED
3. perturbateWeight : removed conditional - replaced comparison check with true → KILLED
4. perturbateWeight : removed conditional - replaced comparison check with false → KILLED
|
} else if (newWeight < minValue) { |
50
|
|
newWeight = minValue; |
51
|
|
} |
52
|
|
|
53
|
1
1. perturbateWeight : replaced float return with 0.0f for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight → KILLED
|
return newWeight; |
54
|
|
} |
55
|
|
|
56
|
|
protected Connection mutateConnection(final Connection connection, final double perturbationRatio, |
57
|
|
final Supplier<Float> distributionValueSupplier, final Supplier<Float> distributionNewValueSupplier, |
58
|
|
final float minValue, final float maxValue) { |
59
|
|
|
60
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
final var connectionBuilder = Connection.builder() |
61
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
.from(connection); |
62
|
|
|
63
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::weight → KILLED
|
float newWeight = connection.weight(); |
64
|
5
1. mutateConnection : removed conditional - replaced comparison check with false → KILLED
2. mutateConnection : negated conditional → KILLED
3. mutateConnection : changed conditional boundary → KILLED
4. mutateConnection : removed call to java/util/random/RandomGenerator::nextDouble → KILLED
5. mutateConnection : removed conditional - replaced comparison check with true → KILLED
|
if (randomGenerator.nextDouble() < perturbationRatio) { |
65
|
2
1. mutateConnection : removed call to java/util/function/Supplier::get → KILLED
2. mutateConnection : removed call to java/lang/Float::floatValue → KILLED
|
final float disturbance = distributionValueSupplier.get(); |
66
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight with argument → KILLED
|
newWeight = perturbateWeight(newWeight, disturbance, minValue, maxValue); |
67
|
|
} else { |
68
|
2
1. mutateConnection : removed call to java/lang/Float::floatValue → KILLED
2. mutateConnection : removed call to java/util/function/Supplier::get → KILLED
|
newWeight = distributionNewValueSupplier.get(); |
69
|
|
} |
70
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::weight → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::weight with receiver → KILLED
|
connectionBuilder.weight(newWeight); |
71
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
2. mutateConnection : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection → KILLED
|
return connectionBuilder.build(); |
72
|
|
} |
73
|
|
|
74
|
|
@Override |
75
|
|
public NeatChromosome mutate(final MutationPolicy mutationPolicy, final Chromosome chromosome) { |
76
|
|
Validate.notNull(mutationPolicy); |
77
|
|
Validate.notNull(chromosome); |
78
|
|
Validate.isInstanceOf(NeatConnectionWeight.class, mutationPolicy); |
79
|
|
Validate.isInstanceOf(NeatChromosome.class, chromosome); |
80
|
|
|
81
|
|
final var neatChromosome = (NeatChromosome) chromosome; |
82
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → KILLED
|
final var numInputs = neatChromosome.getNumInputs(); |
83
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → KILLED
|
final var numOutputs = neatChromosome.getNumOutputs(); |
84
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMinWeightValue → SURVIVED
|
final var minValue = neatChromosome.getMinWeightValue(); |
85
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMaxWeightValue → KILLED
|
final var maxValue = neatChromosome.getMaxWeightValue(); |
86
|
|
|
87
|
|
final var neatConnectionWeight = (NeatConnectionWeight) mutationPolicy; |
88
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::perturbationDistribution → KILLED
|
final Distribution perturbationDistribution = neatConnectionWeight.perturbationDistribution(); |
89
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::perturbationRatio → KILLED
|
final double perturbationRatio = neatConnectionWeight.perturbationRatio(); |
90
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::newValuesDistribution → KILLED
|
final Distribution newValuesDistribution = neatConnectionWeight.newValuesDistribution(); |
91
|
|
|
92
|
|
final Supplier<Float> distributionValueSupplier = DistributionUtils |
93
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/util/DistributionUtils::distributionFloatValueSupplier → KILLED
|
.distributionFloatValueSupplier(randomGenerator, minValue, maxValue, perturbationDistribution); |
94
|
|
final Supplier<Float> distributionNewValueSupplier = DistributionUtils |
95
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/util/DistributionUtils::distributionFloatValueSupplier → SURVIVED
|
.distributionFloatValueSupplier(randomGenerator, minValue, maxValue, newValuesDistribution); |
96
|
|
|
97
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
final var oldConnections = neatChromosome.getConnections(); |
98
|
1
1. mutate : removed call to java/util/List::stream → KILLED
|
final List<Connection> newConnections = oldConnections.stream() |
99
|
5
1. lambda$mutate$0 : removed call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection → KILLED
2. lambda$mutate$0 : replaced call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection with argument → KILLED
3. lambda$mutate$0 : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::lambda$mutate$0 → KILLED
4. mutate : removed call to java/util/stream/Stream::map → KILLED
5. mutate : replaced call to java/util/stream/Stream::map with receiver → KILLED
|
.map(connection -> mutateConnection(connection, |
100
|
|
perturbationRatio, |
101
|
|
distributionValueSupplier, |
102
|
|
distributionNewValueSupplier, |
103
|
|
minValue, |
104
|
|
maxValue)) |
105
|
1
1. mutate : removed call to java/util/stream/Stream::toList → KILLED
|
.toList(); |
106
|
|
|
107
|
2
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::<init> → KILLED
2. mutate : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutate → KILLED
|
return new NeatChromosome(numInputs, numOutputs, minValue, maxValue, newConnections); |
108
|
|
} |
109
|
|
} |
| | Mutations |
31 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] Removed assignment to member variable randomGenerator → KILLED
|
39 |
|
1.1 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with true → KILLED
2.2 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] replaced boolean return with true for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::canHandle → KILLED
3.3 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with false → KILLED
4.4 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] Substituted 1 with 0 → KILLED
5.5 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] Substituted 0 with 1 → KILLED
6.6 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with false → KILLED
7.7 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] negated conditional → KILLED
8.8 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with true → KILLED
9.9 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:canHandle()] negated conditional → KILLED
|
46 |
|
1.1 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] Replaced float addition with subtraction → KILLED
|
47 |
|
1.1 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] negated conditional → KILLED
2.2 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] removed conditional - replaced comparison check with false → KILLED
4.4 Location : perturbateWeight Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()]
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()]
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()]
|
49 |
|
1.1 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] negated conditional → KILLED
2.2 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] removed conditional - replaced comparison check with false → KILLED
4.4 Location : perturbateWeight Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()]
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()]
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()]
|
53 |
|
1.1 Location : perturbateWeight Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:perturbateWeight()] replaced float return with 0.0f for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight → KILLED
|
60 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
61 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
63 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection::weight → KILLED
|
64 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] negated conditional → KILLED
3.3 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] changed conditional boundary → KILLED
4.4 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/random/RandomGenerator::nextDouble → KILLED
5.5 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed conditional - replaced comparison check with true → KILLED
|
65 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/function/Supplier::get → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Float::floatValue → KILLED
|
66 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::perturbateWeight with argument → KILLED
|
68 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Float::floatValue → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/function/Supplier::get → KILLED
|
70 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::weight → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::weight with receiver → KILLED
|
71 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutateConnection()] replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection → KILLED
|
82 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → KILLED
|
83 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → KILLED
|
84 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMinWeightValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()]
|
85 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMaxWeightValue → KILLED
|
88 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::perturbationDistribution → KILLED
|
89 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::perturbationRatio → KILLED
|
90 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/spec/mutation/NeatConnectionWeight::newValuesDistribution → KILLED
|
93 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/core/util/DistributionUtils::distributionFloatValueSupplier → KILLED
|
95 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/util/DistributionUtils::distributionFloatValueSupplier → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()]
|
97 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
98 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to java/util/List::stream → KILLED
|
99 |
|
1.1 Location : lambda$mutate$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection → KILLED
2.2 Location : lambda$mutate$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] replaced call to net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutateConnection with argument → KILLED
3.3 Location : lambda$mutate$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::lambda$mutate$0 → KILLED
4.4 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to java/util/stream/Stream::map → KILLED
5.5 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] replaced call to java/util/stream/Stream::map with receiver → KILLED
|
105 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to java/util/stream/Stream::toList → KILLED
|
107 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::<init> → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeConnectionWeightMutationHandlerTest]/[method:mutate()] replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeConnectionWeightMutationHandler::mutate → KILLED
|