fairnessforensics / wiggum

simpson's paradox inspired fairness forensics
https://fairnessforensics.github.io/wiggum/
MIT License
5 stars 3 forks source link

Make trend calculation a generator to accelerate viz interaction #216

Open brownsarahm opened 2 years ago

brownsarahm commented 2 years ago

This pattern would mean that the visualization side does something like:

for result in labeled_df.get_subgroup_trends_1lev():
    # do viz stuff 

mehtod to update

the get_results would have yeild instead of return and it would calculate one each pass

brownsarahm commented 2 years ago

https://realpython.com/introduction-to-python-generators/