@Override
	public double regress(double[] x) {
		for(int i = 0; i < x.length; i++){
			this.input.get(i).input(x[i]);
		}
		//Propagate stuff
		for(Neuron n : this.input) n.propagate();
		for(List<Neuron> list : this.hidden){
			for(Neuron n : list) n.propagate();
		}
		for(Neuron n : this.output) n.propagate();
		double[] r = new double[this.output.size()];
		for(int i = 0; i < r.length; i++){
			r[i] = this.output.get(i).getLatestOutput();
		}
		return r[0];
	}