[mlpack-svn] r16423 - mlpack/trunk/src/mlpack/methods/naive_bayes
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 14 15:16:48 EDT 2014
Author: rcurtin
Date: Mon Apr 14 15:16:48 2014
New Revision: 16423
Log:
Don't transpose the labels upon loading; expect that they are going to be one
line per label.
Modified:
mlpack/trunk/src/mlpack/methods/naive_bayes/nbc_main.cpp
Modified: mlpack/trunk/src/mlpack/methods/naive_bayes/nbc_main.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/naive_bayes/nbc_main.cpp (original)
+++ mlpack/trunk/src/mlpack/methods/naive_bayes/nbc_main.cpp Mon Apr 14 15:16:48 2014
@@ -52,7 +52,7 @@
{
// Load labels.
mat rawLabels;
- data::Load(labelsFilename, rawLabels, true);
+ data::Load(labelsFilename, rawLabels, true, false);
// Do the labels need to be transposed?
if (rawLabels.n_rows == 1)
More information about the mlpack-svn
mailing list