You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by mb...@apache.org on 2017/11/12 22:57:59 UTC

systemml git commit: [MINOR] Fix flaky JMLC MSVM scoring test (avoid unnecessary R runs)

Repository: systemml
Updated Branches:
  refs/heads/master c04929fab -> f264bebcd


[MINOR] Fix flaky JMLC MSVM scoring test (avoid unnecessary R runs)

This is an attempt to fix the flaky JMLC MSVM scoring test that keeps
failing occasionally on our jenkins infrastructure, which is however not
reproducible in a local dev environment.
 

Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/f264bebc
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/f264bebc
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/f264bebc

Branch: refs/heads/master
Commit: f264bebcd187c61d64e21fb9ccc26cb3e86968ee
Parents: c04929f
Author: Matthias Boehm <mb...@gmail.com>
Authored: Sun Nov 12 14:59:19 2017 -0800
Committer: Matthias Boehm <mb...@gmail.com>
Committed: Sun Nov 12 14:59:19 2017 -0800

----------------------------------------------------------------------
 .../test/integration/functions/jmlc/MulticlassSVMScoreTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/systemml/blob/f264bebc/src/test/java/org/apache/sysml/test/integration/functions/jmlc/MulticlassSVMScoreTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/sysml/test/integration/functions/jmlc/MulticlassSVMScoreTest.java b/src/test/java/org/apache/sysml/test/integration/functions/jmlc/MulticlassSVMScoreTest.java
index 519ebac..d082b41 100644
--- a/src/test/java/org/apache/sysml/test/integration/functions/jmlc/MulticlassSVMScoreTest.java
+++ b/src/test/java/org/apache/sysml/test/integration/functions/jmlc/MulticlassSVMScoreTest.java
@@ -110,8 +110,8 @@ public class MulticlassSVMScoreTest extends AutomatedTestBase
 		writeInputMatrix("W", W, true);
 		
 		//for each input data set
-		for( int i=0; i<nRuns; i++ )
-		{
+		int lnRuns = CHECK_IN_OUT ? 1 : nRuns;
+		for( int i=0; i<lnRuns; i++ ) {
 			//write input data
 			writeInputMatrix("X", Xset.get(i), true);