Skip to content

Commit

Permalink
ASV Fix tol in SGDRegressorBenchmark (scikit-learn#26146)
Browse files Browse the repository at this point in the history
Co-authored-by: jeremie du boisberranger <[email protected]>
  • Loading branch information
OmarManzoor and jeremiedbb authored Apr 14, 2023
1 parent 22ca6ff commit fb02c17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asv_benchmarks/benchmarks/linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def make_data(self, params):
return data

def make_estimator(self, params):
estimator = SGDRegressor(max_iter=1000, tol=1e-16, random_state=0)
(representation,) = params

max_iter = 60 if representation == "dense" else 300

estimator = SGDRegressor(max_iter=max_iter, tol=None, random_state=0)

return estimator

Expand Down

0 comments on commit fb02c17

Please sign in to comment.