Giter VIP home page Giter VIP logo

eidig's Introduction

0 Introduction

This artifact includes source code, datasets and models of the paper "Efficient White-Box Fairness Testing through Gradient Search" by Lingfeng Zhang, Yueling Zhang, Min Zhang in the proceedings of ISSTA'21.

Conference Website: https://conf.researchr.org/details/issta-2021/issta-2021-technical-papers/34/Efficient-White-Box-Fairness-Testing-through-Gradient-Search

Paper: https://dl.acm.org/doi/10.1145/3460319.3464820

1 Getting Started

1.1 Environment

Python3.6 + Tensorflow2.0 or later versions are recommended. The following packages are also required: numpy, scikit-learn, pandas, joblib.

1.2 A Small Example

We provide a small example to validate the general functionality by generating some individual discriminatory instances with ADF, EIDIG-5, and EIDIG-INF, respectively. In the corresponding file directory, enter in the terminal 'python test.py'. You will get statistical results in the terminal and have discriminatory instances saved to 'logging_data/logging_data_from_tests/complete_comparison/'. Less than 30 min will be taken for a personal computer.

2 Detailed Description

2.1 Effectiveness/Efficiency Validation

We reproduce the main experiments in 'reproducing.py'. This module compares the effectiveness and efficiency between ADF and EIDIG in the settings adopted in our paper. You can run it to validate our claims. It will take a few days for a personal computer, or you can run different parts of experiments in parallel for acceleration. The statistical results will be immediately reported in the terminal, and the data for further analysis are saved to 'logging_data/logging_data_from_tests/'.

2.2 Model Evaluation

In the 'model_evaluation' folder, you can evaluate classification performance and discrimination degree on the models provided by us. Alternatively, you can retrain the models by yourself with our data, or with the data generated by 'reproducing.py', and then do the evaluation. The statistical results will also be immediately reported in the terminal.

eidig's People

Contributors

lingfengzhang98 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.