lewismc closed pull request #26: SDAP-83 URL: https://github.com/apache/incubator-sdap-mudrod/pull/26
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java b/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java index d3f4230..d2b4e28 100644 --- a/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java +++ b/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java @@ -306,7 +306,7 @@ public void categoricalVariablesSimilarity(Map<String, Object> metadataA, Map<St List<String> newAList = new ArrayList<>(aList); List<String> newBList = new ArrayList<>(bList); newAList.retainAll(newBList); - similarity = newAList.size() / lengthA; + similarity = (double)newAList.size() / lengthA; } } else if (valueA instanceof String) { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services