Binary Classifier Gradient Optimizer - Coding problem | OneNoughtOne