*/
protected ISelector generateSelector(
PerformancePredictorGeneratorFactory factory) throws Exception {
// Use pre-processor if available
IDMDataPreProcessor<PerformanceTuple> preProcessor =
factory.createPreprocessor(new ParameterBlock());
if (preProcessor != null) {
perfDataSet.setInstances(preProcessor.preprocess(perfDataSet
.getInstances()));
}
if (perfDataSet.getInstances().size() == 0) {
throw new RuntimeException("Performance data set is empty!");
}
ParameterBlock parameters = new ParameterBlock();
if (selectorGenerationFactoryParameters != null
&& selectorGenerationFactoryParameters.containsKey(factory)) {
parameters = selectorGenerationFactoryParameters.get(factory);
}
IPerformancePredictorGenerator sg =