[mlpack-svn] r12747 - mlpack/trunk/src/mlpack/methods/maxip

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon May 21 14:59:27 EDT 2012


Author: rcurtin
Date: 2012-05-21 14:59:26 -0400 (Mon, 21 May 2012)
New Revision: 12747

Modified:
   mlpack/trunk/src/mlpack/methods/maxip/max_ip_impl.hpp
Log:
Count kernel evaluations.


Modified: mlpack/trunk/src/mlpack/methods/maxip/max_ip_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/maxip/max_ip_impl.hpp	2012-05-21 18:51:21 UTC (rev 12746)
+++ mlpack/trunk/src/mlpack/methods/maxip/max_ip_impl.hpp	2012-05-21 18:59:26 UTC (rev 12747)
@@ -167,6 +167,7 @@
       nextFrame.node = referenceTree;
       nextFrame.eval = KernelType::Evaluate(querySet.unsafe_col(queryIndex),
           referenceSet.unsafe_col(referenceTree->Point()));
+      ++kernelEvaluations;
 
       // The initial evaluation will be the best so far.
       indices(0, queryIndex) = referenceTree->Point();
@@ -219,6 +220,7 @@
             childFrame.eval = KernelType::Evaluate(
                 querySet.unsafe_col(queryIndex),
                 referenceSet.unsafe_col(referenceNode->Child(i).Point()));
+            ++kernelEvaluations;
 
             // Can we prune it?  If we can, we can avoid putting it in the queue
             // (saves time).




More information about the mlpack-svn mailing list