//Configure the training controller
factory.configureTraining(trainingController);
//Run the full training
trainingController.setSegmentSet(segments);
trainingController.run();
//Get the fruits of our labors
System.out.println("== Saving Output ==");
FeatureSpecification spec = trainingController.getFeatureSpecification();