[SPARK-4526][MLLIB]Gradient should be added batch computing interface.