Skip to content

Commit

Permalink
Merge pull request #5027 from markotoplak/lr-max-iter
Browse files Browse the repository at this point in the history
Logistic regrssion widget: set max_iter to 10000
  • Loading branch information
janezd committed Oct 15, 2020
2 parents 0668f28 + 6b884ca commit ac714e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Orange/widgets/model/owlogisticregression.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Outputs(OWBaseLearner.Outputs):
tol = 0.0001
fit_intercept = True
intercept_scaling = 1.0
max_iter = 10000

penalty_types = ("Lasso (L1)", "Ridge (L2)")
penalty_types_short = ["l1", "l2"]
Expand Down Expand Up @@ -79,6 +80,7 @@ def create_learner(self):
C=self.strength_C,
fit_intercept=self.fit_intercept,
intercept_scaling=self.intercept_scaling,
max_iter=self.max_iter,
preprocessors=self.preprocessors,
random_state=0
)
Expand Down

0 comments on commit ac714e7

Please sign in to comment.