[mlpack] 02/10: Fix typo that causes incorrect CF results.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Wed Jul 26 21:50:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit af2f68d2532bbcf50e221375cdb2b92626939e78
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Jul 18 11:59:09 2017 -0400
Fix typo that causes incorrect CF results.
---
src/mlpack/methods/cf/cf.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/cf/cf.cpp b/src/mlpack/methods/cf/cf.cpp
index 830d73a..cc67700 100644
--- a/src/mlpack/methods/cf/cf.cpp
+++ b/src/mlpack/methods/cf/cf.cpp
@@ -113,7 +113,7 @@ void CF::GetRecommendations(const size_t numRecs,
// Is the estimated value better than the worst candidate?
- if (averages[i] > pqueue.top().first)
+ if (averages[j] > pqueue.top().first)
{
Candidate c = std::make_pair(averages[j], j);
pqueue.pop();
--
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