|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "markdown", |
5 | | - "id": "1f4ad056", |
| 5 | + "id": "0", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | 8 | "# 2. Bias & Fairness Benchmark\n", |
|
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "cell_type": "code", |
31 | | - "execution_count": 1, |
32 | | - "id": "40a3d028", |
33 | | - "metadata": { |
34 | | - "execution": { |
35 | | - "iopub.execute_input": "2026-04-08T14:46:05.706290Z", |
36 | | - "iopub.status.busy": "2026-04-08T14:46:05.706045Z", |
37 | | - "iopub.status.idle": "2026-04-08T14:46:15.733842Z", |
38 | | - "shell.execute_reply": "2026-04-08T14:46:15.732794Z" |
39 | | - } |
40 | | - }, |
| 31 | + "execution_count": null, |
| 32 | + "id": "1", |
| 33 | + "metadata": {}, |
41 | 34 | "outputs": [ |
42 | 35 | { |
43 | 36 | "name": "stdout", |
|
68 | 61 | }, |
69 | 62 | { |
70 | 63 | "cell_type": "markdown", |
71 | | - "id": "9b3941a2", |
| 64 | + "id": "2", |
72 | 65 | "metadata": {}, |
73 | 66 | "source": [ |
74 | 67 | "## Testing for Definitive YES/NO Answers\n", |
|
83 | 76 | }, |
84 | 77 | { |
85 | 78 | "cell_type": "code", |
86 | | - "execution_count": 2, |
87 | | - "id": "8bc07414", |
88 | | - "metadata": { |
89 | | - "execution": { |
90 | | - "iopub.execute_input": "2026-04-08T14:46:15.736014Z", |
91 | | - "iopub.status.busy": "2026-04-08T14:46:15.735479Z", |
92 | | - "iopub.status.idle": "2026-04-08T14:46:15.818093Z", |
93 | | - "shell.execute_reply": "2026-04-08T14:46:15.816824Z" |
94 | | - } |
95 | | - }, |
| 79 | + "execution_count": null, |
| 80 | + "id": "3", |
| 81 | + "metadata": {}, |
96 | 82 | "outputs": [ |
97 | 83 | { |
98 | 84 | "name": "stdout", |
|
115 | 101 | }, |
116 | 102 | { |
117 | 103 | "cell_type": "code", |
118 | | - "execution_count": 3, |
119 | | - "id": "3a736fc9", |
120 | | - "metadata": { |
121 | | - "execution": { |
122 | | - "iopub.execute_input": "2026-04-08T14:46:15.819598Z", |
123 | | - "iopub.status.busy": "2026-04-08T14:46:15.819462Z", |
124 | | - "iopub.status.idle": "2026-04-08T14:47:18.712842Z", |
125 | | - "shell.execute_reply": "2026-04-08T14:47:18.710967Z" |
126 | | - } |
127 | | - }, |
| 104 | + "execution_count": null, |
| 105 | + "id": "4", |
| 106 | + "metadata": {}, |
128 | 107 | "outputs": [ |
129 | 108 | { |
130 | 109 | "name": "stdout", |
|
219 | 198 | }, |
220 | 199 | { |
221 | 200 | "cell_type": "markdown", |
222 | | - "id": "e8755a78", |
| 201 | + "id": "5", |
223 | 202 | "metadata": {}, |
224 | 203 | "source": [ |
225 | 204 | "## Testing for Bias with FairnessBiasBenchmark\n", |
|
236 | 215 | }, |
237 | 216 | { |
238 | 217 | "cell_type": "code", |
239 | | - "execution_count": 4, |
240 | | - "id": "26632ba1", |
241 | | - "metadata": { |
242 | | - "execution": { |
243 | | - "iopub.execute_input": "2026-04-08T14:47:18.715021Z", |
244 | | - "iopub.status.busy": "2026-04-08T14:47:18.714728Z", |
245 | | - "iopub.status.idle": "2026-04-08T14:47:18.831445Z", |
246 | | - "shell.execute_reply": "2026-04-08T14:47:18.829881Z" |
247 | | - } |
248 | | - }, |
| 218 | + "execution_count": null, |
| 219 | + "id": "6", |
| 220 | + "metadata": {}, |
249 | 221 | "outputs": [], |
250 | 222 | "source": [ |
251 | 223 | "# Create the pronoun scorer\n", |
|
264 | 236 | }, |
265 | 237 | { |
266 | 238 | "cell_type": "code", |
267 | | - "execution_count": 5, |
268 | | - "id": "7572d6d9", |
269 | | - "metadata": { |
270 | | - "execution": { |
271 | | - "iopub.execute_input": "2026-04-08T14:47:18.833546Z", |
272 | | - "iopub.status.busy": "2026-04-08T14:47:18.833274Z", |
273 | | - "iopub.status.idle": "2026-04-08T14:48:27.824543Z", |
274 | | - "shell.execute_reply": "2026-04-08T14:48:27.822875Z" |
275 | | - } |
276 | | - }, |
| 239 | + "execution_count": null, |
| 240 | + "id": "7", |
| 241 | + "metadata": {}, |
277 | 242 | "outputs": [ |
278 | 243 | { |
279 | 244 | "name": "stdout", |
|
480 | 445 | }, |
481 | 446 | { |
482 | 447 | "cell_type": "markdown", |
483 | | - "id": "a73e8820", |
| 448 | + "id": "8", |
484 | 449 | "metadata": {}, |
485 | 450 | "source": [ |
486 | 451 | "## Analyzing Results\n", |
|
493 | 458 | }, |
494 | 459 | { |
495 | 460 | "cell_type": "code", |
496 | | - "execution_count": 6, |
497 | | - "id": "509c7c08", |
498 | | - "metadata": { |
499 | | - "execution": { |
500 | | - "iopub.execute_input": "2026-04-08T14:48:27.826680Z", |
501 | | - "iopub.status.busy": "2026-04-08T14:48:27.826451Z", |
502 | | - "iopub.status.idle": "2026-04-08T14:48:27.832534Z", |
503 | | - "shell.execute_reply": "2026-04-08T14:48:27.831089Z" |
504 | | - } |
505 | | - }, |
| 461 | + "execution_count": null, |
| 462 | + "id": "9", |
| 463 | + "metadata": {}, |
506 | 464 | "outputs": [ |
507 | 465 | { |
508 | 466 | "name": "stdout", |
|
529 | 487 | } |
530 | 488 | ], |
531 | 489 | "metadata": { |
532 | | - "kernelspec": { |
533 | | - "display_name": "pyrit-dev", |
534 | | - "language": "python", |
535 | | - "name": "pyrit-dev" |
536 | | - }, |
537 | 490 | "language_info": { |
538 | 491 | "codemirror_mode": { |
539 | 492 | "name": "ipython", |
|
0 commit comments