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 8b5d4cc241 [SYSTEMDS-3696] Fix incremental slice line (unchanged 
pruning)
8b5d4cc241 is described below

commit 8b5d4cc2419b56877f0028e2d451c10d83327fdd
Author: Matthias Boehm <[email protected]>
AuthorDate: Sat Sep 7 20:41:45 2024 +0200

    [SYSTEMDS-3696] Fix incremental slice line (unchanged pruning)
---
 scripts/builtin/incSliceLine.dml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/builtin/incSliceLine.dml b/scripts/builtin/incSliceLine.dml
index 401baa714b..907ea26855 100644
--- a/scripts/builtin/incSliceLine.dml
+++ b/scripts/builtin/incSliceLine.dml
@@ -321,7 +321,7 @@ createAndScoreBasicSlices = function(Matrix[Double] X2, 
Matrix[Double] X2p,
   # b) unchanged pruning
   # (valid pruning iff average error was larger before,
   # and tuples with changed errors are marked as new tuples)
-  selCols2 = selCols & (ncCnts > 0 | tkCnts > 0 | eAvgOld <= eAvg | eAvgNew != 
0)
+  selCols2 = selCols & (ncCnts > 0 | tkCnts > 0 | eAvgOld <= eAvg | eAvgNew == 
0 | sum(tkCnts)==0)
   if( verbose ) {
     n = as.integer(sum(selCols));
     drop = as.integer(sum(selCols) - sum(selCols2));

Reply via email to