forked from microsoft/CyberBattleSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runall.sh
executable file
·24 lines (13 loc) · 1.66 KB
/
runall.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
#!/usr/bin/python3.9
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Run all jupytext notebook and save output under output directory
OUTPUT_DIR=../../../../notebooks
cat notebook_dql_debug.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_dql_debug_tiny.ipynb -p gymid 'CyberBattleTiny-v0' -p iteration_count 150
cat notebook_benchmark.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_benchmark-tiny.ipynb -p gymid 'CyberBattleTiny-v0' -p iteration_count 200 -p training_episode_count 10 -p eval_episode_count 10 -p maximum_node_count 5 -p maximum_total_credentials 3
cat notebook_benchmark.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_benchmark-toyctf.ipynb -p gymid 'CyberBattleToyCtf-v0' -p iteration_count 1500 -p training_episode_count 20 -p eval_episode_count 10 -p maximum_node_count 12 -p maximum_total_credentials 10
cat notebook_benchmark.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_benchmark-chain.ipynb -p gymid 'CyberBattleChain-v0' -p iteration_count 9000 -p training_episode_count 50 -p eval_episode_count 5 -p maximum_node_count 22 -p maximum_total_credentials 22 -p env_size 10
cat notebook_dql_transfer.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_dql_transfer.ipynb
cat notebook_tabularq.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_tabularq.ipynb
cat notebook_randlookups.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_randlookups.ipynb
cat notebook_withdefender.py | jupytext --to ipynb --set-kernel - | papermill $OUTPUT_DIR/notebook_withdefender.ipynb