private Training createTrainingMethod(String trainingMethod) {
		if (trainingMethod == null) {
			throw new RuntimeException("training method not specified");
		}
		
		try {
			Class trainingClass = Class.forName("regression." + trainingMethod);
			Training trainer = (Training) trainingClass.newInstance();
			return trainer;
			
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		
	}