|
6 | 6 | "source": [
|
7 | 7 | "## GLANCE: Global Actions In A Nutshell for Counterfactual Explainability\n",
|
8 | 8 | "\n",
|
9 |
| - "**GLANCE** is a versatile and adaptive framework for generating *global counterfactual explanations*. <br>\n", |
| 9 | + "**GLANCE** is a versatile and adaptive framework, introduced in our [respective paper](https://arxiv.org/abs/2405.18921), for generating *global counterfactual explanations*. <br>\n", |
10 | 10 | "These explanations are expressed as actions that offer recourse to large population subgroups.<br> The framework aims to provide explanations and insights, ensuring that the actions benefit as many individuals as possible.\n",
|
11 | 11 | "\n",
|
12 | 12 | "GLANCE consists of two algorithms: \n",
|
|
336 | 336 | "name": "stderr",
|
337 | 337 | "output_type": "stream",
|
338 | 338 | "text": [
|
339 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.85it/s]\n", |
340 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n", |
341 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n", |
342 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.64it/s]\n", |
343 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.78it/s]\n", |
344 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n", |
345 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.84it/s]\n", |
346 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.86it/s]\n", |
347 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n", |
348 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n", |
349 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.95it/s]\n", |
| 339 | + "100%|██████████| 1/1 [00:00<00:00, 2.76it/s]\n", |
| 340 | + "100%|██████████| 1/1 [00:00<00:00, 2.92it/s]\n", |
| 341 | + "100%|██████████| 1/1 [00:00<00:00, 2.61it/s]\n", |
| 342 | + "100%|██████████| 1/1 [00:00<00:00, 2.89it/s]\n", |
| 343 | + "100%|██████████| 1/1 [00:00<00:00, 2.79it/s]\n", |
350 | 344 | "100%|██████████| 1/1 [00:00<00:00, 3.03it/s]\n",
|
351 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n", |
352 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n", |
353 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n", |
| 345 | + "100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n", |
354 | 346 | "100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n",
|
| 347 | + "100%|██████████| 1/1 [00:00<00:00, 2.99it/s]\n", |
| 348 | + "100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n", |
355 | 349 | "100%|██████████| 1/1 [00:00<00:00, 2.97it/s]\n",
|
356 | 350 | "100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n",
|
| 351 | + "100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n", |
| 352 | + "100%|██████████| 1/1 [00:00<00:00, 3.04it/s]\n", |
| 353 | + "100%|██████████| 1/1 [00:00<00:00, 2.99it/s]\n", |
| 354 | + "100%|██████████| 1/1 [00:00<00:00, 2.01it/s]\n", |
357 | 355 | "100%|██████████| 1/1 [00:00<00:00, 1.97it/s]\n",
|
358 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.00it/s]\n", |
359 | 356 | "100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n",
|
360 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.03it/s]\n", |
361 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.56it/s]\n", |
362 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.10it/s]\n", |
363 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.92it/s]\n", |
364 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.86it/s]\n", |
365 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n", |
366 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.03it/s]\n", |
367 |
| - "100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n", |
368 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.93it/s]\n", |
369 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n", |
370 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.94it/s]\n", |
371 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.94it/s]\n", |
372 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.98it/s]\n", |
| 357 | + "100%|██████████| 1/1 [00:00<00:00, 1.96it/s]\n", |
| 358 | + "100%|██████████| 1/1 [00:00<00:00, 1.92it/s]\n", |
| 359 | + "100%|██████████| 1/1 [00:00<00:00, 2.01it/s]\n", |
| 360 | + "100%|██████████| 1/1 [00:00<00:00, 3.16it/s]\n", |
| 361 | + "100%|██████████| 1/1 [00:00<00:00, 2.40it/s]\n", |
| 362 | + "100%|██████████| 1/1 [00:00<00:00, 3.17it/s]\n", |
| 363 | + "100%|██████████| 1/1 [00:00<00:00, 2.96it/s]\n", |
| 364 | + "100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n", |
| 365 | + "100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n", |
373 | 366 | "100%|██████████| 1/1 [00:00<00:00, 3.08it/s]\n",
|
374 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n", |
375 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.75it/s]\n", |
376 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.82it/s]\n", |
377 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.55it/s]\n", |
378 |
| - "100%|██████████| 1/1 [00:00<00:00, 2.04it/s]\n", |
379 |
| - "c:\\users\\nikolastheol\\documents\\github\\aix360\\aix360\\algorithms\\glance\\iterative_merges\\iterative_merges.py:1032: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.\n", |
380 |
| - " for column_name, value in row['action'].to_frame().T.reset_index(drop=True).iteritems():\n" |
| 367 | + "100%|██████████| 1/1 [00:00<00:00, 3.14it/s]\n", |
| 368 | + "100%|██████████| 1/1 [00:00<00:00, 2.98it/s]\n", |
| 369 | + "100%|██████████| 1/1 [00:00<00:00, 3.04it/s]\n", |
| 370 | + "100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n", |
| 371 | + "100%|██████████| 1/1 [00:00<00:00, 2.29it/s]\n", |
| 372 | + "100%|██████████| 1/1 [00:00<00:00, 1.92it/s]\n", |
| 373 | + "100%|██████████| 1/1 [00:00<00:00, 1.83it/s]\n", |
| 374 | + "100%|██████████| 1/1 [00:00<00:00, 1.94it/s]\n", |
| 375 | + "100%|██████████| 1/1 [00:00<00:00, 2.00it/s]\n", |
| 376 | + "100%|██████████| 1/1 [00:00<00:00, 2.02it/s]\n", |
| 377 | + "100%|██████████| 1/1 [00:00<00:00, 2.17it/s]\n", |
| 378 | + "100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n" |
381 | 379 | ]
|
382 | 380 | },
|
383 | 381 | {
|
|
409 | 407 | "\u001b[1mTOTAL EFFECTIVENESS:\u001b[0m \u001b[32m100.00%\u001b[39m\n",
|
410 | 408 | "\u001b[1mTOTAL COST:\u001b[0m \u001b[35m5.81\u001b[39m\n"
|
411 | 409 | ]
|
| 410 | + }, |
| 411 | + { |
| 412 | + "name": "stderr", |
| 413 | + "output_type": "stream", |
| 414 | + "text": [ |
| 415 | + "c:\\users\\nikolastheol\\documents\\github\\aix360\\aix360\\algorithms\\glance\\iterative_merges\\iterative_merges.py:1032: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.\n", |
| 416 | + " for column_name, value in row['action'].to_frame().T.reset_index(drop=True).iteritems():\n" |
| 417 | + ] |
412 | 418 | }
|
413 | 419 | ],
|
414 | 420 | "source": [
|
|
508 | 514 | {
|
509 | 515 | "data": {
|
510 | 516 | "text/plain": [
|
511 |
| - "<aix360.algorithms.glance.iterative_merges.iterative_merges.C_GLANCE at 0x1ff9ffd8be0>" |
| 517 | + "<aix360.algorithms.glance.iterative_merges.iterative_merges.C_GLANCE at 0x1c4c57704f0>" |
512 | 518 | ]
|
513 | 519 | },
|
514 | 520 | "execution_count": 7,
|
|
601 | 607 | },
|
602 | 608 | {
|
603 | 609 | "cell_type": "code",
|
604 |
| - "execution_count": 13, |
| 610 | + "execution_count": 9, |
605 | 611 | "metadata": {},
|
606 | 612 | "outputs": [
|
607 | 613 | {
|
608 | 614 | "name": "stderr",
|
609 | 615 | "output_type": "stream",
|
610 | 616 | "text": [
|
611 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.90it/s]\n", |
612 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.21it/s]\n", |
613 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.91it/s]\n", |
614 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.84it/s]\n", |
615 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.47it/s]\n", |
616 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.47it/s]\n", |
617 |
| - "100%|██████████| 1/1 [00:00<00:00, 1.15it/s]\n" |
| 617 | + "100%|██████████| 1/1 [00:00<00:00, 1.94it/s]\n", |
| 618 | + "100%|██████████| 1/1 [00:00<00:00, 1.28it/s]\n", |
| 619 | + "100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n", |
| 620 | + "100%|██████████| 1/1 [00:00<00:00, 2.42it/s]\n", |
| 621 | + "100%|██████████| 1/1 [00:00<00:00, 1.54it/s]\n", |
| 622 | + "100%|██████████| 1/1 [00:00<00:00, 1.55it/s]\n", |
| 623 | + "100%|██████████| 1/1 [00:00<00:00, 1.28it/s]\n" |
618 | 624 | ]
|
619 | 625 | },
|
620 | 626 | {
|
|
639 | 645 | },
|
640 | 646 | {
|
641 | 647 | "cell_type": "code",
|
642 |
| - "execution_count": 20, |
| 648 | + "execution_count": 10, |
643 | 649 | "metadata": {},
|
644 | 650 | "outputs": [
|
645 | 651 | {
|
|
662 | 668 | },
|
663 | 669 | {
|
664 | 670 | "cell_type": "code",
|
665 |
| - "execution_count": 21, |
| 671 | + "execution_count": 11, |
666 | 672 | "metadata": {},
|
667 | 673 | "outputs": [
|
668 | 674 | {
|
|
0 commit comments