This is an automated email from the ASF dual-hosted git repository.

ssiddiqi 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 8fbed73  [MINOR] Removing dimension reduction algorithms from 
pipelines and setting output buffering
8fbed73 is described below

commit 8fbed73f8f3c1ed0ab5fc57c490a4ae9484c6a00
Author: Shafaq Siddiqi <[email protected]>
AuthorDate: Thu Dec 30 16:52:57 2021 +0100

    [MINOR] Removing dimension reduction algorithms from pipelines and setting 
output buffering
---
 .../sysds/test/functions/pipelines/BuiltinTopkLogicalTest.java      | 5 ++++-
 src/test/scripts/functions/pipelines/topkLogicalTest.dml            | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/sysds/test/functions/pipelines/BuiltinTopkLogicalTest.java
 
b/src/test/java/org/apache/sysds/test/functions/pipelines/BuiltinTopkLogicalTest.java
index 7e02647..087feab 100644
--- 
a/src/test/java/org/apache/sysds/test/functions/pipelines/BuiltinTopkLogicalTest.java
+++ 
b/src/test/java/org/apache/sysds/test/functions/pipelines/BuiltinTopkLogicalTest.java
@@ -50,7 +50,7 @@ public class BuiltinTopkLogicalTest extends AutomatedTestBase 
{
 
        @Test
        public void testLogical1() {
-               runTestLogical(4, 5, 2, ExecMode.SINGLE_NODE);
+               runTestLogical(4, 2, 2, ExecMode.SINGLE_NODE);
        }
 
        @Test
@@ -64,6 +64,9 @@ public class BuiltinTopkLogicalTest extends AutomatedTestBase 
{
        }
 
        private void runTestLogical(int max_iter,  int num_inst, int num_exec,  
Types.ExecMode et) {
+
+               setOutputBuffering(true);
+
                String HOME = SCRIPT_DIR+"functions/pipelines/" ;
                Types.ExecMode modeOld = setExecMode(et);
                try {
diff --git a/src/test/scripts/functions/pipelines/topkLogicalTest.dml 
b/src/test/scripts/functions/pipelines/topkLogicalTest.dml
index fdabe02..bab3b20 100644
--- a/src/test/scripts/functions/pipelines/topkLogicalTest.dml
+++ b/src/test/scripts/functions/pipelines/topkLogicalTest.dml
@@ -69,9 +69,9 @@ getSchema = getSchema[, 1:ncol(getSchema) - 1] # strip the 
mask of class label
 metaList = list(mask=getMask, schema=getSchema, fd=as.matrix(0))
 
 logical =  frame([
-                 "7", "MVI", "OTLR", "ED", "EC", "CI", "DUMMY", "DIM", 
-                 "5", "ED",  "MVI",  "CI", "DUMMY", "DIM", "0", "0"
-                 ], rows=2, cols=8) 
+                 "6", "MVI", "OTLR", "ED", "EC", "CI", "DUMMY", 
+                 "4", "ED",  "MVI",  "CI", "DUMMY", "0", "0"
+                 ], rows=2, cols=7) 
 
 
 

Reply via email to