-
Notifications
You must be signed in to change notification settings - Fork 25
/
stability_analysis.sh
executable file
·30 lines (26 loc) · 1.07 KB
/
stability_analysis.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
#!/bin/bash
#
# Gregory Way 2018
# Interpret compression
# 5.analyze-stability/stability_analysis.sh
#
# Apply SVCCA to the compressed representations to determine model stability and
# feature representation variety across iterations, algorithms, and dimensions
# Analysis 1 - Calculate within z stability across datasets and dimensions
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=10000000 \
--execute 1.stability-within-z.ipynb
# Analysis 2 - Calculate across z stability within datasets
jupyter nbconvert --to=html \
--FilesWriter.build_directory=scripts/html \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=10000000 \
--execute 2.stability-across-z.ipynb
# Analysis 3 - Visualize the results
Rscript scripts/nbconverted/3.stability-visualize.r
# Convert all notebooks to scripts
jupyter nbconvert --to=script \
--FilesWriter.build_directory=scripts/nbconverted \
*.ipynb