diff options
author | Matei Zaharia <matei@databricks.com> | 2014-01-10 16:08:35 -0800 |
---|---|---|
committer | Matei Zaharia <matei@databricks.com> | 2014-01-11 22:30:48 -0800 |
commit | f00e949f84df949fbe32c254b592a580b4623811 (patch) | |
tree | 6d1562dedcd649573ab5603cdb70d92123d11808 /mllib/data | |
parent | 4c28a2bad8a6d64ee69213eede440837636fe58b (diff) | |
download | spark-f00e949f84df949fbe32c254b592a580b4623811.tar.gz spark-f00e949f84df949fbe32c254b592a580b4623811.tar.bz2 spark-f00e949f84df949fbe32c254b592a580b4623811.zip |
Added Java unit test, data, and main method for Naive Bayes
Also fixes mains of a few other algorithms to print the final model
Diffstat (limited to 'mllib/data')
-rw-r--r-- | mllib/data/sample_naive_bayes_data.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mllib/data/sample_naive_bayes_data.txt b/mllib/data/sample_naive_bayes_data.txt new file mode 100644 index 0000000000..f874adbaf4 --- /dev/null +++ b/mllib/data/sample_naive_bayes_data.txt @@ -0,0 +1,6 @@ +0, 1 0 0 +0, 2 0 0 +1, 0 1 0 +1, 0 2 0 +2, 0 0 1 +2, 0 0 2 |