Skip to content

Commit

Permalink
Added link to the repsective paper in notebook description
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Theologitis <[email protected]>
  • Loading branch information
ntheol committed Oct 21, 2024
1 parent 3f4c854 commit ae6baf8
Showing 1 changed file with 53 additions and 47 deletions.
100 changes: 53 additions & 47 deletions examples/glance/Adult.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"## GLANCE: Global Actions In A Nutshell for Counterfactual Explainability\n",
"\n",
"**GLANCE** is a versatile and adaptive framework for generating *global counterfactual explanations*. <br>\n",
"**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",
"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",
"\n",
"GLANCE consists of two algorithms: \n",
Expand Down Expand Up @@ -336,48 +336,46 @@
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 1/1 [00:00<00:00, 2.85it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.64it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.78it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.84it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.86it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.95it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.76it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.92it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.61it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.89it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.79it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.03it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.99it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.97it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.88it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.04it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.99it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.97it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.00it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.03it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.56it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.10it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.92it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.86it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.06it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.03it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.93it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.91it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.94it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.94it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.98it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.96it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.92it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.01it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.16it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.40it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.17it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.96it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.08it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.75it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.82it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.55it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.04it/s]\n",
"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",
" for column_name, value in row['action'].to_frame().T.reset_index(drop=True).iteritems():\n"
"100%|██████████| 1/1 [00:00<00:00, 3.14it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.98it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.04it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.00it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.29it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.92it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.83it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.94it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.00it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.02it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.17it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 3.02it/s]\n"
]
},
{
Expand Down Expand Up @@ -409,6 +407,14 @@
"\u001b[1mTOTAL EFFECTIVENESS:\u001b[0m \u001b[32m100.00%\u001b[39m\n",
"\u001b[1mTOTAL COST:\u001b[0m \u001b[35m5.81\u001b[39m\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"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",
" for column_name, value in row['action'].to_frame().T.reset_index(drop=True).iteritems():\n"
]
}
],
"source": [
Expand Down Expand Up @@ -508,7 +514,7 @@
{
"data": {
"text/plain": [
"<aix360.algorithms.glance.iterative_merges.iterative_merges.C_GLANCE at 0x1ff9ffd8be0>"
"<aix360.algorithms.glance.iterative_merges.iterative_merges.C_GLANCE at 0x1c4c57704f0>"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -601,20 +607,20 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 1/1 [00:00<00:00, 1.90it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.21it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.91it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.84it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.47it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.47it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.15it/s]\n"
"100%|██████████| 1/1 [00:00<00:00, 1.94it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.28it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.99it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 2.42it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.54it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.55it/s]\n",
"100%|██████████| 1/1 [00:00<00:00, 1.28it/s]\n"
]
},
{
Expand All @@ -639,7 +645,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -662,7 +668,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit ae6baf8

Please sign in to comment.