forked from TeamHG-Memex/eli5
-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-notebooks.sh
executable file
·33 lines (26 loc) · 1.09 KB
/
update-notebooks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
# scikit-learn text processing tutorial
jupyter nbconvert \
--to rst \
--stdout \
'../notebooks/Debugging scikit-learn text classification pipeline.ipynb' \
> source/_notebooks/debug-sklearn-text.rst
sed -i '' 's/InvertableHashingVectorizer\./:class:`~.InvertableHashingVectorizer`/g' \
source/_notebooks/debug-sklearn-text.rst
sed -i '' 's/eli5.show\\_weights/:func:`eli5.show_weights`/g' \
source/_notebooks/debug-sklearn-text.rst
# sklearn-crfsuite tutorial
jupyter nbconvert \
--to rst \
--stdout \
'../notebooks/sklearn-crfsuite.ipynb' \
> source/_notebooks/debug-sklearn-crfsuite.rst
sed -i '' 's/class="eli5-transition-features"/class="docutils"/g' \
source/_notebooks/debug-sklearn-crfsuite.rst
# LIME
#jupyter nbconvert \
# --to rst \
# '../notebooks/LIME and synthetic data.ipynb'
#rm -r source/_notebooks/LIME
#mv '../notebooks/LIME and synthetic data_files' 'source/_notebooks/LIME and synthetic data_files'
#mv '../notebooks/LIME and synthetic data.rst' source/_notebooks/lime-synthetic.rst