Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion changehc/delphi_changehc/weekday.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# third party
import cvxpy as cp
import numpy as np
from cvxpy.error import SolverError

# first party
from .config import Config
Expand Down Expand Up @@ -83,7 +84,7 @@ def get_params(data):
try:
prob = cp.Problem(cp.Minimize(-ll + lmbda * penalty))
_ = prob.solve()
except:
except SolverError:
# If the magnitude of the objective function is too large, an error is
# thrown; Rescale the objective function
prob = cp.Problem(cp.Minimize((-ll + lmbda * penalty) / 1e5))
Expand Down
3 changes: 2 additions & 1 deletion claims_hosp/delphi_claims_hosp/weekday.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# third party
import cvxpy as cp
import numpy as np
from cvxpy.error import SolverError

# first party
from .config import Config
Expand Down Expand Up @@ -83,7 +84,7 @@ def get_params(data):
try:
prob = cp.Problem(cp.Minimize(-ll + lmbda * penalty))
_ = prob.solve()
except:
except SolverError:
# If the magnitude of the objective function is too large, an error is
# thrown; Rescale the objective function
prob = cp.Problem(cp.Minimize((-ll + lmbda * penalty) / 1e5))
Expand Down
3 changes: 2 additions & 1 deletion emr_hosp/delphi_emr_hosp/weekday.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# third party
import cvxpy as cp
import numpy as np
from cvxpy.error import SolverError

# first party
from .config import Config
Expand Down Expand Up @@ -83,7 +84,7 @@ def get_params(data):
try:
prob = cp.Problem(cp.Minimize(-ll + lmbda * penalty))
_ = prob.solve()
except:
except SolverError:
# If the magnitude of the objective function is too large, an error is
# thrown; Rescale the objective function
prob = cp.Problem(cp.Minimize((-ll + lmbda * penalty) / 1e5))
Expand Down