Changeset 131
- Timestamp:
- 06/28/16 11:06:26 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaBaseTraining.java
r86 r131 22 22 import weka.core.OptionHandler; 23 23 import weka.classifiers.Classifier; 24 import weka.classifiers.bayes.BayesNet; 24 25 import weka.classifiers.meta.CVParameterSelection; 26 import weka.classifiers.meta.Vote; 25 27 26 28 /** … … 93 95 cl = obj; 94 96 97 if( cl instanceof Vote ) { 98 Vote votingClassifier = (Vote) cl; 99 for( Classifier classifier : votingClassifier.getClassifiers() ) { 100 if( classifier instanceof BayesNet ) { 101 ((BayesNet) classifier).setUseADTree(false); 102 } 103 } 104 } 95 105 // we have cross val params 96 106 // cant check on cvparam.length here, it may not be initialized
Note: See TracChangeset
for help on using the changeset viewer.