public static void train(Classifier c) throws IOException, Exception{
		
		//Allows arff files to be converted to instances for use by classifier
		ArffLoader AL = new ArffLoader();
		
		//arff file to use
		File arffdata = testdata;
		
		//Load file
		AL.setFile(arffdata);
		
		//Convert to dataset
		Instances trainingset = AL.getDataSet();
		
		//Set class index 
		trainingset.setClassIndex(6);
		
		//Train the classifier
		c.buildClassifier(trainingset);				
		
		System.out.println("Training Complete!");
		
	}