Repository: incubator-systemml
Updated Branches:
  refs/heads/master b1b9e838d -> d853d74b2


fix for handling 0 search direction

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

Branch: refs/heads/master
Commit: d853d74b28fb3dde2c1321c5ab21c9cbad56fdde
Parents: b1b9e83
Author: prithvirajsen <[email protected]>
Authored: Mon Apr 25 09:27:20 2016 -0700
Committer: prithvirajsen <[email protected]>
Committed: Mon Apr 25 09:27:20 2016 -0700

----------------------------------------------------------------------
 scripts/algorithms/m-svm.dml | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/d853d74b/scripts/algorithms/m-svm.dml
----------------------------------------------------------------------
diff --git a/scripts/algorithms/m-svm.dml b/scripts/algorithms/m-svm.dml
index 560d46f..4142ac1 100644
--- a/scripts/algorithms/m-svm.dml
+++ b/scripts/algorithms/m-svm.dml
@@ -151,6 +151,10 @@ parfor(iter_class in 1:num_classes){
                s = be * s + g_new
                g_old = g_new
 
+               if(sum(s^2) == 0){
+               continue = 0
+               }
+
                iter = iter + 1
        }
 

Reply via email to