Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:holistic-ai/holisticai into feat…
Browse files Browse the repository at this point in the history
…ure/dataset_shift/#221
  • Loading branch information
crismunoz committed Oct 31, 2024
2 parents 2586a4a + 1c5293e commit 09fab56
Show file tree
Hide file tree
Showing 95 changed files with 15,855 additions and 4,123 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/feature-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2

- name: Set up Python
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.9"
cache: "pip"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
with:
fetch-tags: true
fetch-depth: 0
ref: main
token: ${{ steps.app-token.outputs.token }} # Needed to trigger other actions

- name: Set up Python
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.9"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2
with:
fetch-tags: true
fetch-depth: 0
ref: main
token: ${{ steps.app-token.outputs.token }} # Needed to trigger other actions

- name: Set up Python
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.9"

Expand Down
10 changes: 2 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,7 @@
"sphinxcontrib.youtube",
]

intersphinx_mapping = {
"python3": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
"sklearn": ("https://scikit-learn.org/stable/", None),
"matplotlib": ("https://matplotlib.org/stable/", None)
}


source_suffix = {
'.rst': 'restructuredtext',
Expand All @@ -82,7 +76,7 @@


nbsphinx_allow_errors = True # Permitir errores en los notebooks
nbsphinx_execute = 'auto' # Puede ser 'auto', 'always', o 'never'
nbsphinx_execute = 'never' # Puede ser 'auto', 'always', o 'never'

html_show_sourcelink = False
# autodoc options
Expand Down
2 changes: 2 additions & 0 deletions docs/source/gallery/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ This gallery contains a collection of examples that demonstrate the usage of ``h
Explainability <tutorials/explainability>

Robustness <tutorials/robustness>

Security <tutorials/security>
7 changes: 6 additions & 1 deletion docs/source/gallery/tutorials/explainability.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Here are some tutorials where different systems are assessed using the metrics.
- `Measuring XAI using SHAP Feature Importance <explainability/demos/local_shap.ipynb>`_
- `Measuring XAI using LIME Feature Importance <explainability/demos/local_lime.ipynb>`_
- `Measuring XAI using Tree Based Metrics <explainability/demos/tree_based_metrics.ipynb>`_
- `Measuring XAI using Global Feature Importance <explainability/demos/xai_metrics_global_feature_importance.ipynb>`_
- `Measuring XAI using Local Feature Importance <explainability/demos/xai_metrics_local_feature_importance.ipynb>`_
- `Measuring XAI using Surrogate <explainability/demos/xai_metrics_surrogate.ipynb>`_

- Examples
- `Explainability in Machine Learning - Clinical Records Analysis <explainability/examples/example_clinical_records.ipynb>`_
- `Explainability in Machine Learning - Clinical Records Analysis <explainability/examples/example_clinical_records.ipynb>`_
- `Explainability in Machine Learning - US Crime <explainability/examples/measuring_explainability_us_crime.ipynb>`_
- `Explainability in Machine Learning - Adult Dataset <explainability/examples/meauring_explainability_adult.ipynb>`_
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -101,7 +101,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "testing",
"language": "python",
"name": "python3"
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
" </tr>\n",
" <tr>\n",
" <th>Rank Alignment</th>\n",
" <td>0.250000</td>\n",
" <td>0.083333</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
Expand All @@ -123,8 +123,8 @@
" </tr>\n",
" <tr>\n",
" <th>Spread Divergence</th>\n",
" <td>0.060155</td>\n",
" <td>0.0</td>\n",
" <td>0.939845</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Surrogate Accuracy Score</th>\n",
Expand All @@ -141,9 +141,9 @@
"Alpha Importance Score 0.009901 0.0\n",
"XAI Ease Score 1.000000 1.0\n",
"Position Parity 0.250000 1.0\n",
"Rank Alignment 0.250000 1.0\n",
"Rank Alignment 0.083333 1.0\n",
"Spread Ratio 0.147387 0.0\n",
"Spread Divergence 0.060155 0.0\n",
"Spread Divergence 0.939845 1.0\n",
"Surrogate Accuracy Score 0.007099 1.0"
]
},
Expand Down Expand Up @@ -221,7 +221,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 13,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:41.257635Z",
Expand All @@ -237,7 +237,7 @@
"0.7957987838584853"
]
},
"execution_count": 6,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -260,7 +260,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 14,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:41.520942Z",
Expand Down Expand Up @@ -328,8 +328,8 @@
" </tr>\n",
" <tr>\n",
" <th>Spread Divergence</th>\n",
" <td>0.043963</td>\n",
" <td>0.0</td>\n",
" <td>0.956037</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Surrogate Accuracy Score</th>\n",
Expand All @@ -348,11 +348,11 @@
"Position Parity 0.000000 1.0\n",
"Rank Alignment 0.000000 1.0\n",
"Spread Ratio 0.135284 0.0\n",
"Spread Divergence 0.043963 0.0\n",
"Spread Divergence 0.956037 1.0\n",
"Surrogate Accuracy Score 0.980873 1.0"
]
},
"execution_count": 7,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -380,7 +380,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 15,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:42.755085Z",
Expand All @@ -396,7 +396,7 @@
"<Axes: >"
]
},
"execution_count": 8,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -426,7 +426,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 16,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:43.140051Z",
Expand All @@ -442,7 +442,7 @@
"0.810126582278481"
]
},
"execution_count": 9,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -465,7 +465,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 17,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:43.190705Z",
Expand Down Expand Up @@ -523,7 +523,7 @@
" </tr>\n",
" <tr>\n",
" <th>Rank Alignment</th>\n",
" <td>0.074074</td>\n",
" <td>0.150000</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
Expand All @@ -533,8 +533,8 @@
" </tr>\n",
" <tr>\n",
" <th>Spread Divergence</th>\n",
" <td>0.195874</td>\n",
" <td>0.0</td>\n",
" <td>0.804126</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Surrogate Accuracy Score</th>\n",
Expand All @@ -551,13 +551,13 @@
"Alpha Importance Score 0.115385 0.0\n",
"XAI Ease Score 0.888889 1.0\n",
"Position Parity 0.000000 1.0\n",
"Rank Alignment 0.074074 1.0\n",
"Rank Alignment 0.150000 1.0\n",
"Spread Ratio 0.437464 0.0\n",
"Spread Divergence 0.195874 0.0\n",
"Spread Divergence 0.804126 1.0\n",
"Surrogate Accuracy Score 0.848101 1.0"
]
},
"execution_count": 10,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -585,7 +585,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 18,
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-08T06:17:43.901406Z",
Expand All @@ -601,7 +601,7 @@
"<Axes: >"
]
},
"execution_count": 11,
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -625,7 +625,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "testing",
"language": "python",
"name": "python3"
},
Expand Down
Loading

0 comments on commit 09fab56

Please sign in to comment.