Java achieves random gradient descent (with rose dataset)