source: trunk/CrossPare/src/de/ugoe/cs/cpdp/training/SMOPolyKernelBagging.java @ 9

Last change on this file since 9 was 2, checked in by sherbold, 10 years ago
  • initial commit
  • Property svn:mime-type set to text/plain
File size: 621 bytes
Line 
1package de.ugoe.cs.cpdp.training;
2
3import weka.classifiers.Classifier;
4import weka.classifiers.functions.SMO;
5
6public class SMOPolyKernelBagging extends BaggingTraining {
7
8        @Override
9        public String getName() {
10                return "SMOPolyBagging";
11        }
12
13        @Override
14        protected Classifier setupClassifier() {
15                return new SMO();
16                /*CVParameterSelection ps = new CVParameterSelection();
17                ps.setClassifier(new SMO());
18                try {
19                        // Parameter optimization with 5x5 CV
20                        ps.setNumFolds(5);
21                        ps.addCVParameter("C 1 100 4");
22                } catch (Exception e) {
23                        throw new RuntimeException();
24                }
25                return ps;*/
26        }
27
28}
Note: See TracBrowser for help on using the repository browser.