Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-wowa-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-wowa-training
Commits
e0b848d6
Commit
e0b848d6
authored
5 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
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
5 years ago
Stage: leaks
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/be/cylab/java/wowa/training/SolutionDistanceTest.java
+1
-1
1 addition, 1 deletion
...ava/be/cylab/java/wowa/training/SolutionDistanceTest.java
src/test/java/be/cylab/java/wowa/training/TrainerTest.java
+1
-1
1 addition, 1 deletion
src/test/java/be/cylab/java/wowa/training/TrainerTest.java
with
2 additions
and
2 deletions
src/test/java/be/cylab/java/wowa/training/SolutionDistanceTest.java
+
1
−
1
View file @
e0b848d6
...
...
@@ -27,7 +27,7 @@ class SolutionDistanceTest {
List
<
List
<
Double
>>
data
=
generateData
(
20
,
5
);
List
<
Double
>
expected
=
generateExpected
(
20
);
solution
.
computeScoreTo
(
data
,
expected
);
assertEquals
(
1.5925246
410672433
,
solution
.
getFitnessScore
());
assertEquals
(
1.5925246
317727138
,
solution
.
getFitnessScore
());
}
@Test
...
...
This diff is collapsed.
Click to expand it.
src/test/java/be/cylab/java/wowa/training/TrainerTest.java
+
1
−
1
View file @
e0b848d6
...
...
@@ -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.0482902
643223135
,
bestSolution
.
getFitnessScore
());
assertEquals
(
3.0482902
724650027
,
bestSolution
.
getFitnessScore
());
}
@Test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment