String dataSource = (String) cmdLine.getValue(dataSourceOpt);
if (dataSource.equals("hdfs")) {
if (classifierType.equalsIgnoreCase("bayes")) {
log.info("Using Bayes Classifier");
algorithm = new BayesAlgorithm();
datastore = new InMemoryBayesDatastore(params);
} else if (classifierType.equalsIgnoreCase("cbayes")) {
log.info("Using Complementary Bayes Classifier");
algorithm = new CBayesAlgorithm();
datastore = new InMemoryBayesDatastore(params);
} else {
throw new IllegalArgumentException("Unrecognized classifier type: " + classifierType);
}
} else if (dataSource.equals("hbase")) {