Skip to content

Commit fe159be

Browse files
committed
fix mistake
1 parent 9f0653a commit fe159be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skglm/datafits/single_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def params_to_dict(self):
231231
def initialize(self, yXT, y):
232232
n_features = yXT.shape[1]
233233
self.lipschitz = np.zeros(n_features, dtype=yXT.dtype)
234-
self.global_lipschitz = norm(yXT, ord=2) ** 2 / len(y)
234+
self.global_lipschitz = norm(yXT, ord=2) ** 2
235235
for j in range(n_features):
236236
self.lipschitz[j] = norm(yXT[:, j]) ** 2
237237

0 commit comments

Comments
 (0)