Write an implementation of logistic regression using gradient descent, specifying how you handle learning rate decay.