Repository: incubator-systemml
Updated Branches:
  refs/heads/master 640f65463 -> 7d4acddc0


[SYSTEMML-770] Remove warning from GLM-predict.dml execution

Closes #181.


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

Branch: refs/heads/master
Commit: 7d4acddc0354b3afa2021844a049dd7808364807
Parents: 640f654
Author: Glenn Weidner <[email protected]>
Authored: Thu Jun 23 13:53:39 2016 -0700
Committer: Glenn Weidner <[email protected]>
Committed: Thu Jun 23 13:53:39 2016 -0700

----------------------------------------------------------------------
 scripts/algorithms/GLM-predict.dml                    | 3 +++
 src/test/scripts/functions/jmlc/reuse-glm-predict.dml | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7d4acddc/scripts/algorithms/GLM-predict.dml
----------------------------------------------------------------------
diff --git a/scripts/algorithms/GLM-predict.dml 
b/scripts/algorithms/GLM-predict.dml
index 355928b..f58d8d0 100644
--- a/scripts/algorithms/GLM-predict.dml
+++ b/scripts/algorithms/GLM-predict.dml
@@ -164,6 +164,9 @@ if (fileY != " ")
     G2_scaled            = 0.0 / 0.0;
     G2_scaled_pValue     = 0.0 / 0.0;
     
+    # set Y_counts to avoid 'Initialization of Y_counts depends on if-else 
execution' warning
+    Y_counts = matrix(0.0, rows=1, cols=1);
+
     if (dist_type == 1 & link_type == 1) {
     #
     # POWER DISTRIBUTIONS (GAUSSIAN, POISSON, GAMMA, ETC.)

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7d4acddc/src/test/scripts/functions/jmlc/reuse-glm-predict.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/jmlc/reuse-glm-predict.dml 
b/src/test/scripts/functions/jmlc/reuse-glm-predict.dml
index 6ff0b68..01d2101 100644
--- a/src/test/scripts/functions/jmlc/reuse-glm-predict.dml
+++ b/src/test/scripts/functions/jmlc/reuse-glm-predict.dml
@@ -103,6 +103,9 @@ if (fileY != " ")
     G2_scaled            = 0.0 / 0.0;
     G2_scaled_pValue     = 0.0 / 0.0;
     
+    # set Y_counts to avoid 'Initialization of Y_counts depends on if-else 
execution' warning
+    Y_counts = matrix(0.0, rows=1, cols=1);
+    
     if (dist_type == 1 & link_type == 1) {
     #
     # POWER DISTRIBUTIONS (GAUSSIAN, POISSON, GAMMA, ETC.)

Reply via email to