Skip to content

Commit

Permalink
Fix typo that causes incorrect CF results.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcurtin committed Jul 18, 2017
1 parent 726946d commit d38e5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlpack/methods/cf/cf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,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();
Expand Down

0 comments on commit d38e5a2

Please sign in to comment.