Skip to content
Snippets Groups Projects
Commit e0b848d6 authored by a.croix's avatar a.croix
Browse files

Fix error in unit tests due to the change of Utils.normalizeWeight method

parent 75280f8e
No related branches found
No related tags found
No related merge requests found
Pipeline #1688 passed
......@@ -27,7 +27,7 @@ class SolutionDistanceTest {
List<List<Double>> data = generateData(20, 5);
List<Double> expected = generateExpected(20);
solution.computeScoreTo(data, expected);
assertEquals(1.5925246410672433, solution.getFitnessScore());
assertEquals(1.5925246317727138, solution.getFitnessScore());
}
@Test
......
......@@ -33,7 +33,7 @@ class TrainerTest {
List<Double> expected = generateExpected(100);
List<AbstractSolution> computed_population = this.trainer.computeDistances(population, data, expected);
AbstractSolution bestSolution = this.trainer.findBestSolution(computed_population);
assertEquals(3.0482902643223135, bestSolution.getFitnessScore());
assertEquals(3.0482902724650027, bestSolution.getFitnessScore());
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment