[mlpack] 36/53: Fix test bugs.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Nov 14 00:46:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 6376680fa1463574bd151424b8973edf4a69a3dd
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sun Oct 30 21:49:12 2016 +0900

    Fix test bugs.
---
 src/mlpack/methods/approx_kfn/qdafn_impl.hpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/approx_kfn/qdafn_impl.hpp b/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
index 475538c..4e2104e 100644
--- a/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
+++ b/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
@@ -34,9 +34,14 @@ QDAFN<MatType>::QDAFN(const MatType& referenceSet,
 // Train the object.
 template<typename MatType>
 void QDAFN<MatType>::Train(const MatType& referenceSet,
-                           const size_t l,
-                           const size_t m)
+                           const size_t lIn,
+                           const size_t mIn)
 {
+  if (lIn != 0)
+    l = lIn;
+  if (mIn != 0)
+    m = mIn;
+
   // Build tables.  This is done by drawing random points from a Gaussian
   // distribution as the vectors we project onto.  The Gaussian should have zero
   // mean and unit variance.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list