Skip to content

Commit

Permalink
Increasing max_iter to 1000 for LogisticRegression used in PrejudiceR…
Browse files Browse the repository at this point in the history
…emover (#254)
  • Loading branch information
mfeffer authored Sep 2, 2022
1 parent efc6f9a commit c0bd309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def init_coef(self, itype, X, y, s):
coef = self.coef_.reshape(self.n_sfv_, self.n_features_)

for i in range(self.n_sfv_):
clr = LogisticRegression(C=self.C, penalty='l2',
clr = LogisticRegression(C=self.C, penalty='l2', max_iter=1000,
fit_intercept=False)
clr.fit(X[s == i, :], y[s == i])
coef[i, :] = clr.coef_
Expand Down
1 change: 1 addition & 0 deletions aif360/algorithms/inprocessing/prejudice_remover.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- kamfadm-2012ecmlpkdd/train_nb.py
* fixed typo in kamfadm-2012ecmlpkdd/fadm/lr/pr.py:244 (typeError -> TypeError)
* removed commands.py and instead use subprocess.getoutput
* increased max_iter to 1000 in kamfadm-2012ecmlpkdd/fadm/lr/pr.py:239
Notes from fairness-comparison's KamishimaAlgorithm.py on changes made to
original Kamishima code.
Expand Down

0 comments on commit c0bd309

Please sign in to comment.