Skip to content

Commit 645f4d0

Browse files
authored
FIX do not use max_iter=0 in examples (#24)
1 parent 6058825 commit 645f4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/plot_compare_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def compute_obj(X, y, w, alpha, l1_ratio=1):
7373
time_dict["sklearn"].append(time.time() - t_start)
7474
pobj_dict["sklearn"].append(compute_obj(X, y, w_sklearn, alpha, l1_ratio))
7575

76-
for n_iter_us in range(10):
76+
for n_iter_us in range(1, 10):
7777
dict_ours[model].max_iter = n_iter_us
7878
t_start = time.time()
7979
w = dict_ours[model].fit(X, y).coef_

0 commit comments

Comments
 (0)