<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compute_gradient(self):
 """Compute the gradient of the current model using the training set """

        delta = self.predict(self.X) - self.y
        return delta.dot(self.X) / len(self.X)