[mlpack-git] master: Fix backwards initialization. (1e07979)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:44:27 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125

>---------------------------------------------------------------

commit 1e07979d4a9df4bcff7d19b3023690d0695e570b
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sat Oct 17 11:04:21 2015 -0400

    Fix backwards initialization.


>---------------------------------------------------------------

1e07979d4a9df4bcff7d19b3023690d0695e570b
 src/mlpack/core/data/load_impl.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/data/load_impl.hpp b/src/mlpack/core/data/load_impl.hpp
index 2a37659..5ce19d0 100644
--- a/src/mlpack/core/data/load_impl.hpp
+++ b/src/mlpack/core/data/load_impl.hpp
@@ -342,12 +342,12 @@ bool Load(const std::string& filename,
     if (transpose)
     {
       matrix.set_size(cols, rows);
-      info = DatasetInfo(rows);
+      info = DatasetInfo(cols);
     }
     else
     {
       matrix.set_size(rows, cols);
-      info = DatasetInfo(cols);
+      info = DatasetInfo(rows);
     }
 
     stream.close();



More information about the mlpack-git mailing list