This repository provides a framework to run experiments with different models (MISFEAT, MINE, MLP) on various datasets (loan, mobile, attrition, sd1, sd2). It also includes a script to compute metrics for the results.
- Python 3.8 or higher
- Required Python libraries (install via
requirements.txt)
- Clone the repository:
git clone https://github.com/your-repo/misfeat.git cd misfeat - Install dependencies: pip install -r requirements.txt
Script: run_experiments.sh
First, ensure run_experiments.sh is executable, run this command line:
chmod +x run_experiments.sh
The run_experiments.sh script allows you to run experiments with different models and datasets.
It also supports running experiments with multiple random seeds.
Usage ./run_experiments.sh
where <model> = {MISFEAT, MINE, MLP}
<dataset> = {loan, mobile, attrition, sd1, sd2}
Script: compute_metrics.py
After running experiments, you can compute metrics for the results using the compute_metrics.py script.
Usage python3 compute_metrics.py --dataset --model
where <dataset> = {loan, mobile, attrition, sd1, sd2}
<model> = {MISFEAT, MINE, MLP}
-
Run
MISFEATon theloandataset ./run_experiments.sh MISFEAT loan -
Run
MINEon themobiledataset: ./run_experiments.sh MINE mobile -
Run
MLPon theattritiondataset: ./run_experiments.sh MLP attrition -
Compute metrics for
MISFEATonmobile: python3 compute_metrics --dataset mobile --model MISFEAT