You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem in the file aif360/sklearn/preprocessing/learning_fair_representations.py:167 the function scipy.optimize.minimize returns a OptimizeResult which has the attribute message which is already a str object. So the program will file with:
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
Quite a constructed example but this does fail with the error code above. I use aif360==0.5.0 and tried scipy==1.8.1, scipy==1.9.0 and scipy==1.9.1. Fix is trivial just change:
warnings.warn('lbfgs failed to converge: {}'.format(
res.message.decode()), ConvergenceWarning)
to
warnings.warn('lbfgs failed to converge: {}'.format(
res.message), ConvergenceWarning)
There is a problem in the file
aif360/sklearn/preprocessing/learning_fair_representations.py:167
the functionscipy.optimize.minimize
returns a OptimizeResult which has the attributemessage
which is already astr
object. So the program will file with:AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
Quite a constructed example but this does fail with the error code above. I use
aif360==0.5.0
and triedscipy==1.8.1
,scipy==1.9.0
andscipy==1.9.1
. Fix is trivial just change:to
The text was updated successfully, but these errors were encountered: