forked from thauptmann/FeatureWeightDebiasing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecomposition_experiments.sh
More file actions
executable file
·55 lines (51 loc) · 2.16 KB
/
decomposition_experiments.sh
File metadata and controls
executable file
·55 lines (51 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
N_CV_REPEATS=50
DROP=1
for BIAS_TYPE in less_positive_class less_negative_class
do
for SAMPLE_WEIGHTING_METHOD in fw-mrs-temperature mrs-forest psa kmm uniform fw-mrs-temperature-svm \
soft-mrs-linear
do
for DATASET in breast_cancer loan_prediction
do
python src/weighting_experiment.py --dataset $DATASET --sample_weighting_method $SAMPLE_WEIGHTING_METHOD \
--bias_type $BIAS_TYPE --experiment_name decomposition --bias_fraction 0.1 \
--drop $DROP --n_cv_repeats $N_CV_REPEATS --load_previous_results
done
done
done
DROP=5
for BIAS_TYPE in less_positive_class less_negative_class
do
for SAMPLE_WEIGHTING_METHOD in fw-mrs-temperature mrs-forest psa kmm uniform fw-mrs-temperature-svm \
soft-mrs-linear
do
for DATASET in folktables_income hr_analytics folktables_employment
do
python src/weighting_experiment.py --dataset $DATASET --sample_weighting_method $SAMPLE_WEIGHTING_METHOD \
--bias_type $BIAS_TYPE --experiment_name decomposition --bias_fraction 0.1 \
--drop $DROP --n_cv_repeats $N_CV_REPEATS --load_previous_results
done
done
done
DROP=1
for SAMPLE_WEIGHTING_METHOD in fw-mrs-temperature mrs-forest psa kmm uniform \
soft-mrs-linear fw-mrs-temperature-svm
do
for DATASET in breast_cancer loan_prediction
do
python src/weighting_experiment.py --dataset $DATASET --sample_weighting_method $SAMPLE_WEIGHTING_METHOD \
--bias_type mean_difference --experiment_name decomposition --bias_fraction 0.8 \
--drop $DROP --n_cv_repeats $N_CV_REPEATS --load_previous_results
done
done
DROP=5
for SAMPLE_WEIGHTING_METHOD in fw-mrs-temperature mrs-forest psa kmm uniform fw-mrs-temperature-svm \
soft-mrs-linear
do
for DATASET in folktables_income hr_analytics folktables_employment
do
python src/weighting_experiment.py --dataset $DATASET --sample_weighting_method $SAMPLE_WEIGHTING_METHOD \
--bias_type mean_difference --experiment_name decomposition --bias_fraction 0.8 \
--drop $DROP --n_cv_repeats $N_CV_REPEATS --load_previous_results
done
done