[mlpack-git] master,mlpack-1.0.x: Don't transpose on save; one point per line. (9143332)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:46:18 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 91433326f1eca9b3aba72cd6132309ea1a0627d2
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Apr 14 20:10:29 2014 +0000
Don't transpose on save; one point per line.
>---------------------------------------------------------------
91433326f1eca9b3aba72cd6132309ea1a0627d2
src/mlpack/methods/naive_bayes/nbc_main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/methods/naive_bayes/nbc_main.cpp b/src/mlpack/methods/naive_bayes/nbc_main.cpp
index cd1fac9..423812a 100644
--- a/src/mlpack/methods/naive_bayes/nbc_main.cpp
+++ b/src/mlpack/methods/naive_bayes/nbc_main.cpp
@@ -95,7 +95,7 @@ int main(int argc, char* argv[])
vec rawResults;
data::RevertLabels(results, mappings, rawResults);
- // Output results.
+ // Output results. Don't transpose: one result per line.
const string outputFilename = CLI::GetParam<string>("output");
- data::Save(outputFilename, results, true);
+ data::Save(outputFilename, results, true, false);
}
More information about the mlpack-git
mailing list