[mlpack] 291/324: Oops, I fixed this backwards. The actual error is the output.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit dee6bf6adea97f08ffc56dd68dc984412ac02744
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Wed Aug 6 15:01:45 2014 +0000
Oops, I fixed this backwards. The actual error is the output.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16975 9d5b8971-822b-0410-80eb-d18c1038ef23
---
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 d11cf03..41c7533 100644
--- a/src/mlpack/methods/naive_bayes/nbc_main.cpp
+++ b/src/mlpack/methods/naive_bayes/nbc_main.cpp
@@ -81,9 +81,9 @@ int main(int argc, char* argv[])
mat testingData;
data::Load(testingDataFilename, testingData, true);
- if (testingData.n_rows != (trainingData.n_rows - 1))
+ if (testingData.n_rows != trainingData.n_rows)
Log::Fatal << "Test data dimensionality (" << testingData.n_rows << ") "
- << "must be the same as training data (" << trainingData.n_rows - 1
+ << "must be the same as training data (" << trainingData.n_rows
<< ")!" << std::endl;
const bool incrementalVariance = CLI::HasParam("incremental_variance");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list