-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·28 lines (22 loc) · 983 Bytes
/
run.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
#!/usr/bin/env bash
if [ ! -f Marabou/src/engine/marabou.elf ]; then
git clone https://github.com/anwu1219/Marabou/
cd Marabou
git checkout inductive-classify
cd src/engine
make -j4
cd ../../../
fi
if [ -d dump/ ]; then
rm -rf dump/
fi
mkdir dump/
echo "The network takes in a state and outputs two scores, one for applying control clockwise, one for applying control counter-clockwise"
echo ""
echo "Partitioning input regions and identifying invariant sub-regions S where the transition system maps S to itself..."
./Marabou/src/engine/marabou.elf ./networks/cartpole_2layer_8node_classifier.nnet ./networks/empty_property.txt --dnc --num-workers=1 --tree-depth=5 --initial-divides=0 --num-online-divides=2 > log.txt
echo "done!"
echo ""
echo "Printing out the partitions of the input region. Each partition S is contained in a file, suffixed either with hold, denoting S is an invariant region, or nothold, denoting it is not."
echo ""
ls dump/*