In [1]:
import os
In [2]:
ANNOTATIONS=True
BASELINES=True
CV_ARCHITECTURES=True
EVAL_N_SAVE_MODELS=True
APPLY_MODELS=True
In [3]:
def run_nb(nb):
print('EXECUTING %s' % nb)
ret = os.system("jupyter nbconvert --inplace --execute --ExecutePreprocessor.timeout=-1 %s" % nb)
print(ret)
def run_nbs(nbs):
for nb in nbs:
run_nb(nb)
In [ ]:
annotations = [
'Clean\ Annotations.ipynb',
'Split\ Annotations.ipynb',
'Baseline\ Annotations.ipynb',
'Annotation\ Distributions.ipynb',
'Investigation\ of\ Non\ Recipient\ Attacks.ipynb'
]
if ANNOTATIONS:
run_nbs(annotations)
In [ ]:
if BASELINES:
run_nb('Baselines.ipynb')
In [ ]:
# hangs, need to run manually
if CV_ARCHITECTURES:
run_nb('cv_architectures.ipynb')
In [ ]:
# hangs, need to run manually
if EVAL_N_SAVE_MODELS:
run_nb('evan_n_save_models.ipynb')
In [ ]:
# hangs, need to run manually
if APPLY_MODELS:
run_nb('Apply\ Models.ipynb')