[mlpack-svn] [MLPACK] #165: PCA::Apply() fails with Armadillo error

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Sun Nov 27 18:53:20 EST 2011


#165: PCA::Apply() fails with Armadillo error
---------------------+------------------------------------------------------
 Reporter:  rcurtin  |        Owner:  ajinkya                      
     Type:  defect   |       Status:  new                          
 Priority:  major    |    Milestone:  MLPACK 1.0                   
Component:  MLPACK   |     Keywords:  pca armadillo shed_cols error
 Blocking:  126      |   Blocked By:                               
---------------------+------------------------------------------------------
 When I use `PCA::Apply(arma::mat& data, const int newDimension)`, I get
 the following:

 {{{
 :[ ryan @ greenstreet ]: $ bin/pca --input_file test_data_3_1000.csv
 --output_file pca.csv

 error: Mat::shed_cols(): indices out of bounds or incorrectly used

 terminate called after throwing an instance of 'std::logic_error'
   what():
 Aborted
 }}}

 and the error appears to be coming from the call to `shed_cols()` in
 `pca.cpp:95`.

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/165>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list