[mlpack] 42/53: Set to minimum possible score.

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 921ff50b1306355ab44433e6c27e51934f87df87
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sun Oct 30 12:49:30 2016 -0400

    Set to minimum possible score.
---
 src/mlpack/methods/approx_kfn/drusilla_select_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/approx_kfn/drusilla_select_impl.hpp b/src/mlpack/methods/approx_kfn/drusilla_select_impl.hpp
index 942063b..b61ab0b 100644
--- a/src/mlpack/methods/approx_kfn/drusilla_select_impl.hpp
+++ b/src/mlpack/methods/approx_kfn/drusilla_select_impl.hpp
@@ -125,7 +125,7 @@ void DrusillaSelect<MatType>::Train(
       }
     };
 
-    std::vector<Candidate> clist(m, std::make_pair(double(-1.0), size_t(-1)));
+    std::vector<Candidate> clist(m, std::make_pair(double(-DBL_MAX), size_t(-1)));
     std::priority_queue<Candidate, std::vector<Candidate>, CandidateCmp>
         pq(CandidateCmp(), std::move(clist));
 

-- 
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