[mlpack-git] master: Set to minimum possible score. (921ff50)
gitdub at mlpack.org
gitdub at mlpack.org
Sun Oct 30 12:49:30 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/b89ae3a65afe8510757ed64ed2a5a89e0c43bb23...91564ff7f1f706eba03d19009d3d53c206bdfafe
>---------------------------------------------------------------
commit 921ff50b1306355ab44433e6c27e51934f87df87
Author: Ryan Curtin <ryan at ratml.org>
Date: Sun Oct 30 12:49:30 2016 -0400
Set to minimum possible score.
>---------------------------------------------------------------
921ff50b1306355ab44433e6c27e51934f87df87
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));
More information about the mlpack-git
mailing list