Skip to content

Commit

Permalink
fix bug in decision stump using wrong value for number of classes
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardRaff committed Mar 2, 2016
1 parent 5412a2d commit 290ef4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSAT/src/jsat/classifiers/trees/DecisionStump.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public List<List<DataPointPair<Integer>>> trainC(List<DataPointPair<Integer>> da
aSplit = listOfLists(catAttributes[attribute].getNumOfCategories());
split_scores = new ImpurityScore[aSplit.size()];
for(int i=0; i < split_scores.length; i++)
split_scores[i] = new ImpurityScore(aSplit.size(), gainMethod);
split_scores[i] = new ImpurityScore(predicting.getNumOfCategories(), gainMethod);

List<DataPointPair<Integer>> wasMissing = new ArrayList<DataPointPair<Integer>>(0);
double missingSum = 0.0;
Expand Down

0 comments on commit 290ef4f

Please sign in to comment.