Skip to content

Commit

Permalink
Fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 23, 2014
1 parent 91849d0 commit ba34422
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ object MLUtils {
var squaredDistance = 0.0
var iv1 = indices(kv1)
val nnzv2 = v2.size

while (kv2 < nnzv2) {
var score = 0.0
if (kv2 != iv1) {
score = v2(kv2)
} else {
score = v1.values(iv1) - v2(kv2)
score = v1.values(kv1) - v2(kv2)
if (kv1 < indices.length - 1) {
kv1 += 1
iv1 = indices(kv1)
Expand Down

0 comments on commit ba34422

Please sign in to comment.