Skip to content

Commit 2e13da8

Browse files
Merge pull request Trusted-AI#103 from IBM/nrkarthikeyan-patch-1
Update opt_tools.py to check for optimality properly
2 parents 8c90737 + 5e35906 commit 2e13da8

File tree

1 file changed

+1
-1
lines changed
  • aif360/algorithms/preprocessing/optim_preproc_helpers

1 file changed

+1
-1
lines changed

aif360/algorithms/preprocessing/optim_preproc_helpers/opt_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def optimize(self, epsilon=1., dlist=[], verbose=True):
380380
prob = Problem(obj, constraints)
381381
prob.solve(verbose=verbose)
382382

383-
if prob.status == "optimal":
383+
if prob.status in ["optimal", "optimal_inaccurate"]:
384384
print("Optimized Preprocessing: Objective converged to %f"
385385
% (prob.value))
386386
else:

0 commit comments

Comments
 (0)