@Override
	public void fit(double[] x, double[] y) {
		double[] y0 = predict(x);
		if (verbose)
			System.out.println("Initial: \n" + n.toString());
		double[] e = new double[y0.length];
		for (int i = 0; i < y0.length; i++)
			e[i] = y[i] - y0[i];
		if (verbose)
			System.out.println("Goal : " + Arrays.toString(y));
		n.addError(e);
		n.backpropagate();
		if (verbose) {
			predict(x);
			System.out.println("Final: \n" + n.toString());
		}
	}