[mlpack-git] master, mlpack-1.0.x: Don't save a rowvector into a colvector. Use the build in option of the save function to transpose the vector. (c13aa93)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:53:03 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 c13aa9397233eefa3bbc1f2e8aec9821f86d9d03
Author: Marcus Edel <marcus.edel at fu-berlin.de>
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.
>---------------------------------------------------------------
c13aa9397233eefa3bbc1f2e8aec9821f86d9d03
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);
}
}
More information about the mlpack-git
mailing list