[mlpack-svn] [MLPACK] #289: Neighborhood components analysis fails and creates a segmentation fault.

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Tue May 21 13:00:42 EDT 2013


#289: Neighborhood components analysis fails and creates a segmentation fault.
---------------------+------------------------------------------------------
 Reporter:  marcus   |        Owner:     
     Type:  defect   |       Status:  new
 Priority:  trivial  |    Milestone:     
Component:  mlpack   |     Keywords:     
 Blocking:           |   Blocked By:     
---------------------+------------------------------------------------------
 The executable for neighborhood components analysis fails and creates a
 segmentation fault. The error is caused by a wrong reference created by
 {{{ labels.unsafe_col(0). }}}

 {{{
 NCA<LMetric<2> > nca(data, labels.unsafe_col(0)); // this line produce the
 error
 NCA<LMetric<2>, L_BFGS> nca(data, labels.unsafe_col(0)); // this line
 produce the error
 }}}

 {{{
 // everything is fine
 arma::uvec labels_col = labels.unsafe_col(0);
 NCA<LMetric<2> > nca(data, labels_col);
 NCA<LMetric<2>, L_BFGS> nca(data, labels_col);
 }}}

 Command: nca -i fisheriris_data.csv -l fisheriris_label.csv -o output.csv
 -O sgd

 Data-set and patch is added.

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/289>
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