Skip to content

Commit

Permalink
Update ppi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aangelopoulos committed Mar 8, 2024
1 parent 493512f commit bcae33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppi_py/ppi.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ def ppi_logistic_pointestimate(
if w_unlabeled is None
else w_unlabeled / w_unlabeled.sum() * N
)
if "ftol" not in optimizer_options.keys():
optimizer_options = {"ftol": 1e-15}
if (optimizer_options is None) or ("ftol" not in optimizer_options.keys()):
optimizer_options += {"ftol": 1e-15}

# Initialize theta
theta = (
Expand Down

0 comments on commit bcae33a

Please sign in to comment.