Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colab Notebook development #137

Merged
merged 116 commits into from
Dec 19, 2023
Merged

Colab Notebook development #137

merged 116 commits into from
Dec 19, 2023

Conversation

sgpjesus
Copy link
Collaborator

@sgpjesus sgpjesus commented Dec 18, 2023

Changelog

These changes accommodate several QoL improvements to interact with the notebooks and provide a better user experience.

These are:

  • Creation of the class DefaultExperiment, an experiment that allows the users to pass their dataset configuration, as well as the size and group of methods they want to test (aequitas/fairflow/experiment/default.py; this includes default configurations in aequitas/fairflow/experiment/_configs.py).
  • Separation of BaseEstimator methods from InProcessing methods. These estimators include methods that are traditionally fairness-blind (e.g., Decision Trees, Neural Networks, k-nearest neighbors, etc.). BaseEstimator methods include a parameter unawareness not to use the sensitive attribute as a feature for prediction.
  • Restructure of the aequitas.fairflow.methods directory.
  • Creation of the class LabeledFrame (introduced in the Datasets), an extension of pandas.DataFrame with the attributes X, y, and s, for easier access to these specific columns.
  • Change GenericDataset to support splitting, either randomly or depending on a categorical variable.
  • Update both plots to have an easy-to-use wrapper.
  • Add a method to utils for reading and restructuring the results of an experiment.
  • Add a method to utils for downloading the example files from the repository, used in colab notebooks.
  • Several small updates, such as updating imports with isort and formating the code with black.

@sgpjesus sgpjesus added the enhancement New feature or request label Dec 18, 2023
@sgpjesus sgpjesus self-assigned this Dec 18, 2023
@sgpjesus sgpjesus changed the title Notebook Compatibility in Fairflow Colab Notebook Compatibility in Fairflow Dec 19, 2023
@sgpjesus sgpjesus changed the title Colab Notebook Compatibility in Fairflow Colab Notebook development Dec 19, 2023
@saleiro saleiro merged commit 8ab35e6 into master Dec 19, 2023
@sgpjesus sgpjesus deleted the fairflow-release branch January 5, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants