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

incubator-systemml git commit: [SYSTEMML-1193] Update perftest runNaiveBayes.sh and doc for required probabilities parameter in naive-bayes-predict.dml

Repository: incubator-systemml
Updated Branches:
  refs/heads/master 5665e152e -> af5be9b2e


[SYSTEMML-1193] Update perftest runNaiveBayes.sh and doc for required probabilities parameter in naive-bayes-predict.dml

Closes #353.


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

Branch: refs/heads/master
Commit: af5be9b2e619f0229d07e45c5a330e4c14d978ff
Parents: 5665e15
Author: Glenn Weidner <gw...@us.ibm.com>
Authored: Mon Feb 13 14:56:36 2017 -0800
Committer: Glenn Weidner <gw...@us.ibm.com>
Committed: Mon Feb 13 14:56:36 2017 -0800

----------------------------------------------------------------------
 docs/algorithms-classification.md | 3 +--
 scripts/perftest/runNaiveBayes.sh | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/af5be9b2/docs/algorithms-classification.md
----------------------------------------------------------------------
diff --git a/docs/algorithms-classification.md b/docs/algorithms-classification.md
index 8d19d04..0ee43bf 100644
--- a/docs/algorithms-classification.md
+++ b/docs/algorithms-classification.md
@@ -1236,8 +1236,7 @@ val prediction = model.transform(X_test_df)
 SystemML Language Reference for details.
 
 **probabilities**: Location (on HDFS) to store class membership
-    probabilities for a held-out test set. Note that this is an
-    optional argument.
+    probabilities for a held-out test set.
 
 **accuracy**: Location (on HDFS) to store the training accuracy during
     learning and testing accuracy from a held-out test set

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/af5be9b2/scripts/perftest/runNaiveBayes.sh
----------------------------------------------------------------------
diff --git a/scripts/perftest/runNaiveBayes.sh b/scripts/perftest/runNaiveBayes.sh
index decd17d..7154cdf 100755
--- a/scripts/perftest/runNaiveBayes.sh
+++ b/scripts/perftest/runNaiveBayes.sh
@@ -35,6 +35,6 @@ echo "NaiveBayes train on "$1": "$ttrain >> times.txt
 
 #predict
 tstart=$SECONDS
-${CMD} -f ../algorithms/naive-bayes-predict.dml $DASH-explain $DASH-stats $DASH-nvargs X=$1_test Y=$2_test prior=${BASE}/prior conditionals=${BASE}/conditionals fmt="csv"
+${CMD} -f ../algorithms/naive-bayes-predict.dml $DASH-explain $DASH-stats $DASH-nvargs X=$1_test Y=$2_test prior=${BASE}/prior conditionals=${BASE}/conditionals fmt="csv" probabilities=${BASE}/probabilities
 tpredict=$(($SECONDS - $tstart - 3))
 echo "NaiveBayes predict on "$1": "$tpredict >> times.txt