/** * See if ordering makes any difference on the classifiers. First I'll look at 100 samples * * @param prefix * @param type * @param prune */ public double orderingExperiment(String prefix, SequenceType type, boolean prune) { prepare(prefix, type); ClassifyParams params = new ClassifyParams(); params.type = type; params.prunePct = 0.5; params.incPrune = true; params.folds = 2; Classifier c = new CAVEClassifier(params); c.train(0, _training); return evaluate(c); }
public double experiment(SequenceType type, boolean prune) { for (List<Instance> list : _training.values()) Collections.shuffle(list, new Random(System.currentTimeMillis())); ClassifyParams params = new ClassifyParams(); params.type = type; params.prunePct = 0.5; params.incPrune = prune; params.folds = 2; Classifier c = new CAVEClassifier(params); c.train(0, _training); return evaluate(c); }