[mlpack] [mlpack/mlpack] Error while using mlpack::data::Load (#844)

MOHIT RAJ notifications at github.com
Sat Dec 24 10:34:48 EST 2016


In case you are load armadillo then you need to transpose the matrix after load, if the coordinate list is in row major format. It might be the cause as the error says requested size is not compatible with column vector layout.
Commands to run :
Let x be the matrix name.
arma :: sp_mat x; // only if in case of loading sparse matrix (this is optional)
x.load("***.csv")  //armadilo load 
x = x.t()  // Here is your command to transpose the matrix.
Try this if it works out fine.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/844#issuecomment-269088849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161224/ae1a55c6/attachment.html>


More information about the mlpack mailing list