Skip to content

Commit

Permalink
Merge pull request #26 from s-simoncelli/fix-ref-point-estimation-test
Browse files Browse the repository at this point in the history
Fixed expected reference point test
  • Loading branch information
s-simoncelli committed Aug 26, 2024
2 parents 48e75bb + 4295779 commit ff40d84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions optirustic-py/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/metrics/hypervolume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ mod test {
let data = NSGA2::read_json_file(&file).unwrap();

let found = HyperVolume::estimate_reference_point_from_file(&data, None).unwrap();
let expected = [0.999, 1.00];
let expected = [0.9999, 1.0000];
assert_approx_array_eq(&found, &expected, Some(0.001));
}
}

0 comments on commit ff40d84

Please sign in to comment.