Skip to content

Commit

Permalink
Fix bug related to missing attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jul 19, 2015
1 parent 968d0ee commit 156b536
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
be accompanied by a bump in version number, regardless of how minor the change.
-->

<version>0.9.2</version>
<version>0.9.3</version>


<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void summarizeModel(PrintStream out, RandomDecisionForest forest) {

}

private static class TreeSummary {
public static class TreeSummary {
private int splits;
private Map<String, AttributeSummary> attributes = new HashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ else if (acceptableMissingValue)
continue;

if (cc == null) {
cc = new ClassificationCounter(attrVal);
cc = new ClassificationCounter(attrVal != null ? attrVal : MISSING_VALUE);
Serializable newKey = (attrVal != null) ? attrVal : MISSING_VALUE;
result.put(newKey, cc);
}
Expand Down

0 comments on commit 156b536

Please sign in to comment.