Skip to content

Commit 1f98396

Browse files
crismunozKleyt0nandrelfnovaesdependabot[bot]fracarfer5
authored
merge 1.0.9 (#275)
* chore: update files for new gitflow (#227) * chore: update files for new-release * chore: update files for new gitflow * chore: update readme (#229) * docs: update tutorials * docs: update tutorials (#230) * feat: new datasets and docs (#231) * feat: new datasets and docs * fix: fmt * docs: rename lib (#234) * fix: datasets labels (#245) * feature: update dataset_shift module (#248) * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * fix: update dataset_shift code and plots * fix: update dataset_shift code and plots * fix: update dataset_shift code and plots * fix: percent_degradation to ADP nomenclature * chore(deps): bump actions/checkout from 4.1.7 to 4.2.2 (#250) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4.1.7...v4.2.2) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump actions/setup-python from 5.2.0 to 5.3.0 (#251) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5.2.0...v5.3.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: New Robustness Regression Attacker: Ridge Poissoner (#241) * feat: adding adaptive and randflip initializers for regression poisoners * feat: adding ridge-based regression poisoner * test: adding unit tests for ridge-based regression poisoner * chore: updating tutorial with ridge-based poisoner * docs: updating regression poisoner docs with ridge regressor * docs: adding docstrings for ridge regressor poisoner * chore: fixing lint * chore: updating docstrings for poisoners * chore: updloading notebook file for regression poisoner tutorial * docs: updating possible parameters in docstrings * feat: new methods for measuring security privacy risk score (#254) * feat: adding source code and tutorial for privacy risk score * tests: adding unit test for privacy risk score metric * docs: updating reference docstrings for privacy risk score metric * docs: updating docs for example gallery for security module * feat: adding tutorial for privacy risk score with different models * chore: adding tutorial for example gallery * chore: adding tutorial notebook files for docs section * Update security.rst --------- Co-authored-by: Cristian Muñoz <cristian.munoz@holisticai.com> * feat: new xai metrics based on globa feature importance, local feature importance and surrogate (#255) * internal changes * fix: pfi regression and shap * update: shap and contrast * chore: improved xai metrics * fix: paper regression results * ok * chore: xai-metrics updated * chore: format files * test: add test for new metrics * docs: update documentation and docstring format * chore: hatch dmt --------- Co-authored-by: Kleyton da Costa <kleyton.vsc@gmail.com> * chore: Improve Accuracy Degradation Profile Documentation (#249) * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * feature: update dataset_shift module * fix: update dataset_shift code and plots * fix: update dataset_shift code and plots * fix: update dataset_shift code and plots * fix: percent_degradation to ADP nomenclature * fix: uptade documentation * chore: clean adp tutorial * chore: remove inccorect reference * chore: format * doc: fix docstring --------- Co-authored-by: crismunoz <crisstrink@gmail.com> * docs:update tutorials (#257) * docs: updating docstrings for regression poissoners (#256) * fix: load dataset (#259) * Delete paper directory (#262) * Delete README.rst * Delete workflows directory (#263) * Features/improvementes (#265) * chore: push updates * fix: compas and add description * fix: format --------- Co-authored-by: crismunoz <crisstrink@gmail.com> * add: bias tradeoff example (#266) * add: bank marketing description (#267) * chore: updating hackaton notebook with privacy risk score interpretation (#271) * docs: update documetnation (#274) * fix: merge conflicts --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Kleyton da Costa <44351707+Kleyt0n@users.noreply.github.com> Co-authored-by: andrelfnovaes <40208986+andrelfnovaes@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Franklin Cardenoso <44931423+fracarfer5@users.noreply.github.com> Co-authored-by: Kleyton da Costa <kleyton.vsc@gmail.com>
1 parent 0d6f6b4 commit 1f98396

File tree

64 files changed

+17037
-8638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+17037
-8638
lines changed

README.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/source/_static/coffe.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/source/_static/learn.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/source/_static/start.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/source/gallery/tutorials/bias/mitigating_bias/binary_classification/demos/inprocessing.ipynb

Lines changed: 279 additions & 65 deletions
Large diffs are not rendered by default.

docs/source/gallery/tutorials/bias/mitigating_bias/binary_classification/demos/postprocessing.ipynb

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 2,
18+
"execution_count": 1,
1919
"metadata": {
2020
"execution": {
2121
"iopub.execute_input": "2024-09-08T06:12:37.387547Z",
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "code",
50-
"execution_count": 3,
50+
"execution_count": 2,
5151
"metadata": {
5252
"execution": {
5353
"iopub.execute_input": "2024-09-08T06:12:37.948413Z",
@@ -66,20 +66,20 @@
6666
"\n",
6767
"/* Light blue theme (default) */\n",
6868
".generic-object-container.blue {\n",
69-
" background-color: #f2f8fd !important; /* Container background: light blue */\n",
69+
" background-color: rgba(242, 248, 253, 0.9) !important; /* Light blue with 70% opacity */\n",
7070
" border-color: #4db6ac !important; /* Soft blue border */\n",
7171
"}\n",
7272
"\n",
7373
".generic-object-header.blue {\n",
74-
" background-color: #a0c4ff9a !important; /* Header background: darker blue */\n",
74+
" background-color: rgba(152, 171, 202, 0.4) !important; /* Darker blue with 60% opacity */\n",
7575
"}\n",
7676
"\n",
7777
".generic-object-header.blue:hover {\n",
78-
" background-color: #8bb1c0 !important; /* Darker shade on hover over the header */\n",
78+
" background-color: rgba(139, 177, 192, 0.8) !important; /* Darker blue on hover with 60% opacity */\n",
7979
"}\n",
8080
"\n",
8181
".attribute-list.blue:hover {\n",
82-
" background-color: #b2dfdb !important; /* Attribute background on hover: darker blue */\n",
82+
" background-color: rgba(178, 223, 219, 0.8) !important; /* Attribute hover background with 60% opacity */\n",
8383
"}\n",
8484
"\n",
8585
"/* Orange theme */\n",
@@ -139,18 +139,19 @@
139139
".generic-object-container {\n",
140140
" padding: 0;\n",
141141
" margin: 0 auto;\n",
142-
" border: 1px dashed;\n",
142+
" border: 0px dashed;\n",
143143
" border-radius: 5px;\n",
144144
" display: block;\n",
145145
" width: auto;\n",
146146
" max-width: 800px;\n",
147147
" box-sizing: border-box;\n",
148148
" margin-bottom: 15px;\n",
149149
" transition: transform 0.2s, box-shadow 0.2s;\n",
150+
" box-shadow: 0px 2px 5px rgba(77, 182, 172, 0.3);\n",
150151
"}\n",
151152
"\n",
152153
".generic-object-container:hover {\n",
153-
" box-shadow: 0px 4px 10px rgba(77, 182, 172, 0.3);\n",
154+
" box-shadow: 0px 8px 20px rgba(77, 182, 172, 0.3);\n",
154155
"}\n",
155156
"\n",
156157
".generic-object-header {\n",
@@ -207,6 +208,11 @@
207208
" align-items: center;\n",
208209
"}\n",
209210
"\n",
211+
".generic-object-container,\n",
212+
".generic-object-header,\n",
213+
".attribute-list {\n",
214+
" color: #000000 !important; /* Establece el color del texto a negro */\n",
215+
"}\n",
210216
" </style>\n",
211217
" <div style=\"display: flex;\">\n",
212218
" <div class=\"generic-object-container blue first-level\">\n",
@@ -240,7 +246,7 @@
240246
"{\"dtype\":\"Dataset\",\"attributes\":{\"Instances\":45222,\"Features\":[\"X , y , p_attrs , group_a , group_b\"]},\"metadata\":\"sex: {'group_a': 'Male', 'group_b': 'Female'}\"}"
241247
]
242248
},
243-
"execution_count": 3,
249+
"execution_count": 2,
244250
"metadata": {},
245251
"output_type": "execute_result"
246252
}
@@ -967,7 +973,7 @@
967973
},
968974
{
969975
"cell_type": "code",
970-
"execution_count": 8,
976+
"execution_count": 3,
971977
"metadata": {},
972978
"outputs": [
973979
{
@@ -979,20 +985,20 @@
979985
"\n",
980986
"/* Light blue theme (default) */\n",
981987
".generic-object-container.blue {\n",
982-
" background-color: #f2f8fd !important; /* Container background: light blue */\n",
988+
" background-color: rgba(242, 248, 253, 0.9) !important; /* Light blue with 70% opacity */\n",
983989
" border-color: #4db6ac !important; /* Soft blue border */\n",
984990
"}\n",
985991
"\n",
986992
".generic-object-header.blue {\n",
987-
" background-color: #a0c4ff9a !important; /* Header background: darker blue */\n",
993+
" background-color: rgba(152, 171, 202, 0.4) !important; /* Darker blue with 60% opacity */\n",
988994
"}\n",
989995
"\n",
990996
".generic-object-header.blue:hover {\n",
991-
" background-color: #8bb1c0 !important; /* Darker shade on hover over the header */\n",
997+
" background-color: rgba(139, 177, 192, 0.8) !important; /* Darker blue on hover with 60% opacity */\n",
992998
"}\n",
993999
"\n",
9941000
".attribute-list.blue:hover {\n",
995-
" background-color: #b2dfdb !important; /* Attribute background on hover: darker blue */\n",
1001+
" background-color: rgba(178, 223, 219, 0.8) !important; /* Attribute hover background with 60% opacity */\n",
9961002
"}\n",
9971003
"\n",
9981004
"/* Orange theme */\n",
@@ -1052,18 +1058,19 @@
10521058
".generic-object-container {\n",
10531059
" padding: 0;\n",
10541060
" margin: 0 auto;\n",
1055-
" border: 1px dashed;\n",
1061+
" border: 0px dashed;\n",
10561062
" border-radius: 5px;\n",
10571063
" display: block;\n",
10581064
" width: auto;\n",
10591065
" max-width: 800px;\n",
10601066
" box-sizing: border-box;\n",
10611067
" margin-bottom: 15px;\n",
10621068
" transition: transform 0.2s, box-shadow 0.2s;\n",
1069+
" box-shadow: 0px 2px 5px rgba(77, 182, 172, 0.3);\n",
10631070
"}\n",
10641071
"\n",
10651072
".generic-object-container:hover {\n",
1066-
" box-shadow: 0px 4px 10px rgba(77, 182, 172, 0.3);\n",
1073+
" box-shadow: 0px 8px 20px rgba(77, 182, 172, 0.3);\n",
10671074
"}\n",
10681075
"\n",
10691076
".generic-object-header {\n",
@@ -1120,6 +1127,11 @@
11201127
" align-items: center;\n",
11211128
"}\n",
11221129
"\n",
1130+
".generic-object-container,\n",
1131+
".generic-object-header,\n",
1132+
".attribute-list {\n",
1133+
" color: #000000 !important; /* Establece el color del texto a negro */\n",
1134+
"}\n",
11231135
" </style>\n",
11241136
" <div style=\"display: flex;\">\n",
11251137
" <div class=\"generic-object-container orange first-level\">\n",
@@ -1153,7 +1165,7 @@
11531165
"{\"dtype\":\"LPDebiaserBinary\",\"subtitle\":\"LPDebiaserBinary(constraint=EqualizedOdds)\",\"attributes\":{\"Type\":\"Bias Mitigation Postprocessing\"}}"
11541166
]
11551167
},
1156-
"execution_count": 8,
1168+
"execution_count": 3,
11571169
"metadata": {},
11581170
"output_type": "execute_result"
11591171
}
@@ -1168,7 +1180,7 @@
11681180
},
11691181
{
11701182
"cell_type": "code",
1171-
"execution_count": 9,
1183+
"execution_count": 4,
11721184
"metadata": {
11731185
"execution": {
11741186
"iopub.execute_input": "2024-09-08T06:12:39.894582Z",
@@ -1236,22 +1248,22 @@
12361248
" </tr>\n",
12371249
" <tr>\n",
12381250
" <th>Equality of Opportunity Difference</th>\n",
1239-
" <td>-0.000363</td>\n",
1251+
" <td>-0.006369</td>\n",
12401252
" <td>0</td>\n",
12411253
" </tr>\n",
12421254
" <tr>\n",
12431255
" <th>False Positive Rate Difference</th>\n",
1244-
" <td>-0.000552</td>\n",
1256+
" <td>0.000221</td>\n",
12451257
" <td>0</td>\n",
12461258
" </tr>\n",
12471259
" <tr>\n",
12481260
" <th>Average Odds Difference</th>\n",
1249-
" <td>-0.000457</td>\n",
1261+
" <td>-0.003074</td>\n",
12501262
" <td>0</td>\n",
12511263
" </tr>\n",
12521264
" <tr>\n",
12531265
" <th>Accuracy Difference</th>\n",
1254-
" <td>0.012704</td>\n",
1266+
" <td>0.011336</td>\n",
12551267
" <td>0</td>\n",
12561268
" </tr>\n",
12571269
" </tbody>\n",
@@ -1266,13 +1278,13 @@
12661278
"Four Fifths Rule 0.735702 1\n",
12671279
"Cohen D 0.229077 0\n",
12681280
"2SD Rule 10.131199 0\n",
1269-
"Equality of Opportunity Difference -0.000363 0\n",
1270-
"False Positive Rate Difference -0.000552 0\n",
1271-
"Average Odds Difference -0.000457 0\n",
1272-
"Accuracy Difference 0.012704 0"
1281+
"Equality of Opportunity Difference -0.006369 0\n",
1282+
"False Positive Rate Difference 0.000221 0\n",
1283+
"Average Odds Difference -0.003074 0\n",
1284+
"Accuracy Difference 0.011336 0"
12731285
]
12741286
},
1275-
"execution_count": 9,
1287+
"execution_count": 4,
12761288
"metadata": {},
12771289
"output_type": "execute_result"
12781290
}
@@ -2024,7 +2036,8 @@
20242036
"provenance": []
20252037
},
20262038
"kernelspec": {
2027-
"display_name": "Python 3",
2039+
"display_name": "testing",
2040+
"language": "python",
20282041
"name": "python3"
20292042
},
20302043
"language_info": {
@@ -2037,7 +2050,7 @@
20372050
"name": "python",
20382051
"nbconvert_exporter": "python",
20392052
"pygments_lexer": "ipython3",
2040-
"version": "3.11.9"
2053+
"version": "3.11.3"
20412054
}
20422055
},
20432056
"nbformat": 4,

0 commit comments

Comments
 (0)