fairml icon indicating copy to clipboard operation
fairml copied to clipboard

readme.md example code not consistent with example.py

Open achimkoh opened this issue 7 years ago • 3 comments

Hi, I noticed that some lines in the example are different from example.py, and seem to call (presumably) deprecated functions.

Regarding from fairml import plot_generic_dependence_dictionary: There is no plot_generic_dependence_dictionary. Importing plot_dependencies worked for me.

Also, fig = plot_dependencies( total.get_compress_dictionary_into_key_median(), reverse_values=False, title="FairML feature dependence" ) results in: AttributeError: 'AuditResult' object has no attribute 'get_compress_dictionary_into_key_median', while total.median() works.

achimkoh avatar Mar 13 '17 03:03 achimkoh

Hi @achimkoh, you are right. I'll push an update shortly to handle the issues that you mentioned. I'll also update the readme to reflect the changes. Thanks for the issues, please free feel to update us on any other issues you have.

thanks!

adebayoj avatar Mar 13 '17 20:03 adebayoj

Hi thanks for the reply. I had a few minutes and made a pull request so you can have a look!

achimkoh avatar Apr 28 '17 18:04 achimkoh

This would be great to have as an IPython notebook. IMO the more examples the better. If I find time I can do one.

JoshuaC3 avatar May 28 '17 11:05 JoshuaC3