* when predictor generation goes wrong
*/
public void testPredictorGeneration() throws Exception {
// Generate predictor
IPerformancePredictor predictor =
predictorGenerator.generatePredictor(getDataSet().getInstances(),
getDataSet().getMetaData());
assertNotNull(predictor);
// Generate corresponding selector
ISelector selector =
SelectorGeneration.createSelector(getDataSet(), predictor);
assertNotNull(selector);
// Simple test run to see if comparison throws Exceptions etc.
Features features = getDataSet().getInstances().get(0).getFeatures();
Configuration config1 =
getDataSet().getInstances().get(0).getConfiguration();
Configuration config2 =
getDataSet().getInstances().get(1).getConfiguration();
try {
predictor.predictPerformance(features, config1);
predictor.predictPerformance(features, config2);
} catch (Exception e) {
SimSystem.report(e);
fail("Performance prediction should work.");
}
}