// }
}
} catch (Exception e) {System.out.println(e.toString()); return;}
ArrayList factorialOut = new ArrayList();
Filter allF = new AllFilter();
allF = null;
Filter genericFilter = null;
ArrayList factorialInB = null;
try {
for (Integer count_removes = 0; count_removes<aRemoves.size(); count_removes++){
for (Integer count_discrete = 0; count_discrete<aDiscrete.size(); count_discrete++) {
for (Integer count_CVFolds = 0; count_CVFolds<aCVFolds.length; count_CVFolds++){
factorialInB = new ArrayList();
factorialInB.add((Integer) Integer.parseInt(TxtNumIters));
factorialInB.add((Integer) aCVFolds[count_CVFolds]);
factorialInB.add((Integer) Integer.parseInt(TxtCVnumIters));
factorialInB.add((Integer) Integer.parseInt(TxtCVSeed));
if (!aRemoves.get(count_removes).equals("escape")){
String[] opt = {"-R", aRemoves.get(count_removes)};
genericFilter = (Filter) Class.forName("weka.filters.unsupervised.attribute.Remove").newInstance();
if (genericFilter instanceof OptionHandler)
((OptionHandler) genericFilter).setOptions(opt);
factorialInB.add(genericFilter);
}
if (!aDiscrete.get(count_discrete)[0].equals("escape")){
String[] opt = aDiscrete.get(count_discrete);
genericFilter = (Filter) Class.forName("weka.filters.unsupervised.attribute.Discretize").newInstance();
if (genericFilter instanceof OptionHandler)
((OptionHandler) genericFilter).setOptions(opt);
factorialInB.add(genericFilter);
}
if (aRemoves.get(count_removes).equals("escape") && aDiscrete.get(count_discrete).equals("escape")){
allF = new AllFilter();
factorialInB.add(allF);
}
factorialOut.add(factorialInB);
}