Create specs for gradient descent