Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C45ModelSelection.java
- ...
- // Find "best" attribute to split on.
- minResult = 0;
- for (i=0;i<data.numAttributes();i++){
- if ((i != (data).classIndex()) &&
- (currentModel[i].checkModel()))
- // Use 1E-3 here to get a closer approximation to the original
- // implementation.
- if ((currentModel[i].infoGain() >= (averageInfoGain-1E-3)) &&
- Utils.gr(currentModel[i].gainRatio(),minResult)){
- bestModel = currentModel[i];
- minResult = currentModel[i].gainRatio();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement