Skip to content

Commit 88cf229

Browse files
committed
remove the InlineProvider from the documenation examples and force the documenation system to use the inline provider through environment variables
1 parent 5f10d79 commit 88cf229

30 files changed

Lines changed: 22 additions & 202 deletions

docs/benchmarks/ebm-classification-comparison.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,6 @@
386386
"record_df = pd.DataFrame.from_records(records)[['dataset_name', 'model_name', 'test_score_mean', 'test_score_std']]\n",
387387
"record_df.to_csv('ebm-perf-classification-overnight.csv')"
388388
]
389-
},
390-
{
391-
"cell_type": "code",
392-
"execution_count": null,
393-
"metadata": {},
394-
"outputs": [],
395-
"source": []
396389
}
397390
],
398391
"metadata": {

docs/build.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
@setlocal
2+
3+
SET INTERPRET_DOCS_MODE=docs
4+
15
jupyter-book build --warningiserror --keep-going .\interpret\
26
SET RETURNCODE=%ERRORLEVEL%
37

48
copy .\extras\* .\interpret\_build\html\ /Y
59

610
echo This file stops Github Pages from deleting directories that start with _> .\interpret\_build\html\.nojekyll
711

8-
exit /b %RETURNCODE%
12+
endlocal & exit /b %RETURNCODE%

docs/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export INTERPRET_DOCS_MODE=docs
2+
13
jupyter-book build --warningiserror --keep-going ./interpret/
24
ret_code=$?
35

docs/excel_exporter/excel_exporter.ipynb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -557,14 +557,6 @@
557557
"source": [
558558
"workbook.close()"
559559
]
560-
},
561-
{
562-
"cell_type": "code",
563-
"execution_count": null,
564-
"id": "7a17d435-a231-4179-b602-c0bf75a0e203",
565-
"metadata": {},
566-
"outputs": [],
567-
"source": []
568560
}
569561
],
570562
"metadata": {

docs/interpret/aplr.ipynb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@
2424
"The following code will train a logistic regression for the breast cancer dataset. The visualizations provided will be for both global and local explanations."
2525
]
2626
},
27-
{
28-
"cell_type": "code",
29-
"execution_count": null,
30-
"id": "chemical-warrior",
31-
"metadata": {},
32-
"outputs": [],
33-
"source": [
34-
"from interpret import set_visualize_provider\n",
35-
"from interpret.provider import InlineProvider\n",
36-
"\n",
37-
"set_visualize_provider(InlineProvider())"
38-
]
39-
},
4027
{
4128
"cell_type": "code",
4229
"execution_count": null,

docs/interpret/dpebm.ipynb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@
2222
"The following code will train a DPEBM classifier for the adult income dataset. The visualizations provided will be for both global and local explanations."
2323
]
2424
},
25-
{
26-
"cell_type": "code",
27-
"execution_count": null,
28-
"id": "bibliographic-mouse",
29-
"metadata": {},
30-
"outputs": [],
31-
"source": [
32-
"from interpret import set_visualize_provider\n",
33-
"from interpret.provider import InlineProvider\n",
34-
"set_visualize_provider(InlineProvider())"
35-
]
36-
},
3725
{
3826
"cell_type": "code",
3927
"execution_count": null,

docs/interpret/dt.ipynb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@
2626
"The following code will train an decision tree classifier for the breast cancer dataset. The visualizations provided will be for both global and local explanations."
2727
]
2828
},
29-
{
30-
"cell_type": "code",
31-
"execution_count": null,
32-
"id": "surprising-smith",
33-
"metadata": {},
34-
"outputs": [],
35-
"source": [
36-
"from interpret import set_visualize_provider\n",
37-
"from interpret.provider import InlineProvider\n",
38-
"set_visualize_provider(InlineProvider())"
39-
]
40-
},
4129
{
4230
"cell_type": "code",
4331
"execution_count": null,

docs/interpret/ebm-internals-classification.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
"# boilerplate\n",
2121
"from interpret import show\n",
2222
"from interpret.glassbox import ExplainableBoostingClassifier\n",
23-
"import numpy as np\n",
24-
"\n",
25-
"from interpret import set_visualize_provider\n",
26-
"from interpret.provider import InlineProvider\n",
27-
"set_visualize_provider(InlineProvider())"
23+
"import numpy as np\n"
2824
]
2925
},
3026
{

docs/interpret/ebm-internals-multiclass.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
"# boilerplate\n",
2121
"from interpret import show\n",
2222
"from interpret.glassbox import ExplainableBoostingClassifier\n",
23-
"import numpy as np\n",
24-
"\n",
25-
"from interpret import set_visualize_provider\n",
26-
"from interpret.provider import InlineProvider\n",
27-
"set_visualize_provider(InlineProvider())"
23+
"import numpy as np\n"
2824
]
2925
},
3026
{

docs/interpret/ebm-internals-regression.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
"# boilerplate\n",
2525
"from interpret import show\n",
2626
"from interpret.glassbox import ExplainableBoostingRegressor\n",
27-
"import numpy as np\n",
28-
"\n",
29-
"from interpret import set_visualize_provider\n",
30-
"from interpret.provider import InlineProvider\n",
31-
"set_visualize_provider(InlineProvider())"
27+
"import numpy as np\n"
3228
]
3329
},
3430
{

0 commit comments

Comments
 (0)