ExpGradientDescent algorithm needs more fixing.