Skip to content

Commit

Permalink
Relaxing the similarity test in FMRegressionModel as the standardisat…
Browse files Browse the repository at this point in the history
…ion is quite different in floats.
  • Loading branch information
Craigacp committed Oct 1, 2021
1 parent 4ea0252 commit e4d1c28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void testOnnxSerialization() throws IOException, OrtException {
Prediction<Regressor> tribuo = nativePredictions.get(i);
Prediction<Regressor> external = onnxPredictions.get(i);
assertArrayEquals(tribuo.getOutput().getNames(),external.getOutput().getNames());
assertArrayEquals(tribuo.getOutput().getValues(),external.getOutput().getValues(),1e-5);
assertArrayEquals(tribuo.getOutput().getValues(),external.getOutput().getValues(),1e-4);
}

onnxModel.close();
Expand Down

0 comments on commit e4d1c28

Please sign in to comment.