final List<Instance<AttributesMap>> instances = Benchmarks.loadDiabetesDataset();
testWithTrainingSet(instances);
}
private void testWithTrainingSet(final List<Instance<AttributesMap>> instances) {
final PredictiveModelWithDataBuilderFactory predictiveModelBuilderFactory = new PredictiveModelWithDataBuilderFactory(new RandomForestBuilderFactory());
final ClassifierStationaryCrossValidator crossVal = new ClassifierStationaryCrossValidator(4, 4, new ClassifierLogCVLossFunction());
PredictiveModelOptimizer predictiveModelOptimizer = new PredictiveModelOptimizer(predictiveModelBuilderFactory, instances, crossVal);
final Map<String, Object> optimalParameters = predictiveModelOptimizer.determineOptimalConfiguration();
logger.info("Optimal parameters: " + optimalParameters);
RandomForestBuilder defaultRFBuilder = new RandomForestBuilder();