@Test
public void testSerialize() throws Exception {

	FileUtil.copyResource("org/encog/data/img/a.png", IMG_A);
	FileUtil.copyResource("org/encog/data/img/b.png", IMG_B);
	FileUtil.copyResource("org/encog/data/img/c.png", IMG_C);
	
	
	Downsample downsampler = new SimpleIntensityDownsample();
	ImageMLDataSet training = new ImageMLDataSet(downsampler, false, 1, -1);
	
	ImageMLData inputImage1 = new ImageMLData(ImageIO.read(IMG_A));
	ImageMLData inputImage2 = new ImageMLData(ImageIO.read(IMG_B));
	ImageMLData inputImage3 = new ImageMLData(ImageIO.read(IMG_C));
	
	BasicMLData idealImage1 = new BasicMLData(new double[]{1.0,0.0,0.0});
	BasicMLData idealImage2 = new BasicMLData(new double[]{0.0,1.0,0.0});
	BasicMLData idealImage3 = new BasicMLData(new double[]{0.0,0.0,1.0});
	
	training.add(inputImage1,idealImage1);
	training.add(inputImage2,idealImage2);
	training.add(inputImage3,idealImage3);
	
	training.downsample(10, 10);
	
	EncogUtility.saveCSV(FILE_CSV, CSVFormat.DECIMAL_POINT, training );
}