[mlpack-svn] [MLPACK] #272: The example in kmeans.hpp is wrong

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Wed Apr 24 07:20:15 EDT 2013


#272: The example in kmeans.hpp is wrong
---------------------+------------------------------------------------------
 Reporter:  marcus   |        Owner:           
     Type:  defect   |       Status:  new      
 Priority:  trivial  |    Milestone:           
Component:  mlpack   |     Keywords:  has-patch
 Blocking:           |   Blocked By:           
---------------------+------------------------------------------------------
 The example in the header file kmeans.hpp is wrong, caused by an incorrect
 object creation.

 {{{
 // warning: empty parentheses interpreted as a function declaration
 KMeans<> k();
 // error: base of member reference is a function;
 k.Cluster(data, 3, assignments);
 }}}

 Patch is added.

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