[mlpack] 177/324: Don't save a rowvector into a colvector. Use the build in option of the save function to transpose the vector.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:08 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 07da6fb58064761b1d1b746fe45e7eadfc3a29c6
Author: marcus <marcus at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Sat Jul 12 17:09:45 2014 +0000
Don't save a rowvector into a colvector. Use the build in option of the save function to transpose the vector.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16816 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/methods/linear_regression/linear_regression_main.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mlpack/methods/linear_regression/linear_regression_main.cpp b/src/mlpack/methods/linear_regression/linear_regression_main.cpp
index 4cfd1c5..6aead25 100644
--- a/src/mlpack/methods/linear_regression/linear_regression_main.cpp
+++ b/src/mlpack/methods/linear_regression/linear_regression_main.cpp
@@ -170,7 +170,6 @@ int main(int argc, char* argv[])
Timer::Stop("prediction");
// Save predictions.
- predictions = arma::trans(predictions);
- data::Save(outputPredictions, predictions, true);
+ data::Save(outputPredictions, predictions, true, false);
}
}
--
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