We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5412a2d commit 290ef4fCopy full SHA for 290ef4f
1 file changed
JSAT/src/jsat/classifiers/trees/DecisionStump.java
@@ -394,7 +394,7 @@ public List<List<DataPointPair<Integer>>> trainC(List<DataPointPair<Integer>> da
394
aSplit = listOfLists(catAttributes[attribute].getNumOfCategories());
395
split_scores = new ImpurityScore[aSplit.size()];
396
for(int i=0; i < split_scores.length; i++)
397
- split_scores[i] = new ImpurityScore(aSplit.size(), gainMethod);
+ split_scores[i] = new ImpurityScore(predicting.getNumOfCategories(), gainMethod);
398
399
List<DataPointPair<Integer>> wasMissing = new ArrayList<DataPointPair<Integer>>(0);
400
double missingSum = 0.0;
0 commit comments