Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions skglm/datafits/single_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ def gradient_scalar_sparse(self, X_data, X_indptr, X_indices, y, Xw, j):
grad += X_data[i] * (np.exp(Xw[idx_i]) - y[idx_i])
return grad / len(y)

def intercept_update_self(self, y, Xw):
pass
def intercept_update_step(self, y, Xw):
return np.sum(self.raw_grad(y, Xw))


class Gamma(BaseDatafit):
Expand Down Expand Up @@ -555,8 +555,8 @@ def gradient_scalar(self, X, y, w, Xw, j):
def gradient_scalar_sparse(self, X_data, X_indptr, X_indices, y, Xw, j):
pass

def intercept_update_self(self, y, Xw):
pass
def intercept_update_step(self, y, Xw):
return np.sum(self.raw_grad(y, Xw))


class Cox(BaseDatafit):
Expand Down