This is an automated email from the ASF dual-hosted git repository. mboehm7 pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push: new cc023c3e9c [MINOR] Relax assertions of quantizeByCluster builtin tests cc023c3e9c is described below commit cc023c3e9c1ddb88aa8e57cf193622bfe5a0a757 Author: Matthias Boehm <mboe...@gmail.com> AuthorDate: Wed Jul 24 21:54:42 2024 +0200 [MINOR] Relax assertions of quantizeByCluster builtin tests --- .../test/functions/builtin/part2/BuiltinQuantizeByClusterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/sysds/test/functions/builtin/part2/BuiltinQuantizeByClusterTest.java b/src/test/java/org/apache/sysds/test/functions/builtin/part2/BuiltinQuantizeByClusterTest.java index e398a0ad06..d3074d4c95 100644 --- a/src/test/java/org/apache/sysds/test/functions/builtin/part2/BuiltinQuantizeByClusterTest.java +++ b/src/test/java/org/apache/sysds/test/functions/builtin/part2/BuiltinQuantizeByClusterTest.java @@ -121,12 +121,12 @@ public class BuiltinQuantizeByClusterTest extends AutomatedTestBase { (int) Math.ceil((double) cols / subspaces), meta_codebook.getCols()); //check if distortion is within a threshold - double pq_distortion = readDMLScalarFromOutputDir("pq_distortion").get(new MatrixValue.CellIndex(1,1)); + double pq_distortion = readDMLScalarFromOutputDir("pq_distortion").get(new MatrixValue.CellIndex(1, 1)); double k_distortion = readDMLScalarFromOutputDir("k_distortion").get(new MatrixValue.CellIndex(1, 1)); if (!test_case.equals("cluster")) { Assert.assertTrue(pq_distortion < 1.2 * k_distortion + 0.5); } else { - Assert.assertTrue(pq_distortion < 2 * k_distortion + 2); + Assert.assertTrue(pq_distortion < 2.4 * k_distortion + 2); } } }