







function [J, Ds] = fminFunc(arch, X, Y, uThetas, lambda = 0)

	Thetas = roll(uThetas, arch);

	J = jota(X, Y, Thetas, lambda);
	D = backProp(X, Y, Thetas, lambda);

	Ds = unroll(D);

end
