@Test
	public void testXorCopy() {
		int[] h = new int[] { 2, 5, 1 };
		Regressor r = new NeuralRegressor(h,.1,0,0);
		DataFactory d = new IdentityData(2,0,1,1,false);
		Regressor r0 = r.copy();
		DataFactory.train(r,d,10000);
		double err = DataFactory.test(r,d,1000);
		System.out.println("Error: "+err);
		if (err > .1)
			fail("Error: "+err);
		err = DataFactory.test(r0,d,1000);
		System.out.println("Error Copy: "+err);
		if (err > .1)
			fail("Error Copy: "+err);
	}