You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by pr...@apache.org on 2016/04/25 18:27:38 UTC
incubator-systemml git commit: fix for handling 0 search direction
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 <se...@us.ibm.com>
Authored: Mon Apr 25 09:27:20 2016 -0700
Committer: prithvirajsen <se...@us.ibm.com>
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
}