Skip to content

Commit

Permalink
Merge pull request #189 from SunYatong/2.0.0
Browse files Browse the repository at this point in the history
buildSimilarityMatrix fix
  • Loading branch information
SunYatong committed Aug 21, 2017
2 parents 0bde407 + 646aeca commit d4ce747
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void buildSimilarityMatrix(DataModel dataModel) {
}

double sim = getCorrelation(thisVector, thatVector);
if (!Double.isNaN(sim)) {
if (!Double.isNaN(sim) && sim != 0) {
similarityMatrix.set(i, j, sim);
}
}
Expand Down

0 comments on commit d4ce747

Please sign in to comment.