[mlpack-svn] r12955 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jun 5 15:37:52 EDT 2012
Author: rcurtin
Date: 2012-06-05 15:37:52 -0400 (Tue, 05 Jun 2012)
New Revision: 12955
Modified:
mlpack/trunk/src/mlpack/tests/max_ip_test.cpp
Log:
Test modified for new MaxIP API.
Modified: mlpack/trunk/src/mlpack/tests/max_ip_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/max_ip_test.cpp 2012-06-05 19:15:14 UTC (rev 12954)
+++ mlpack/trunk/src/mlpack/tests/max_ip_test.cpp 2012-06-05 19:37:52 UTC (rev 12955)
@@ -32,16 +32,17 @@
arma::mat data;
srand(time(NULL));
data.randn(5, 1000);
+ LinearKernel lk;
// Now run MaxIP naively.
- MaxIP<LinearKernel> naive(data, false, true);
+ MaxIP<LinearKernel> naive(data, lk, false, true);
arma::Mat<size_t> naiveIndices;
arma::mat naiveProducts;
naive.Search(10, naiveIndices, naiveProducts);
// Now run it in single-tree mode.
- MaxIP<LinearKernel> single(data, true);
+ MaxIP<LinearKernel> single(data, lk, true);
arma::Mat<size_t> singleIndices;
arma::mat singleProducts;
More information about the mlpack-svn
mailing list