-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.sh
executable file
·26 lines (23 loc) · 1.44 KB
/
profile.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
#!/bin/bash
premake4 --clang=false --scu=true gmake
#CFLAGS=-Og make config=profiling clean
#CFLAGS=-Og make config=profiling
make config=profiling clean
make config=profiling
premake4 --clang=true --scu=false gmake
RV=$?
if [ $RV -ne 0 ]; then
exit $RV
fi
SEED=$RANDOM
ENVIRONMENT=blocks_world_2_p
#HEAPCHECK=normal $CMD -n 1000 "$@"
#HEAPPROFILE=$ENVIRONMENT.heap $CMD -n 1000 "$@"
# CPUPROFILE=$ENVIRONMENT.prof CPUPROFILE_FREQUENCY=100000 \
valgrind --tool=callgrind -v --dump-every-bb=10000000 \
./blocks_world_2_p -o null --learning-rate 0 --secondary-learning-rate 0 --rules rules.carli --bw2-goal unstack --num-steps 10 --num-blocks 10
# ./blocks_world_2_p -o null --seed $SEED --num-steps 10000 --discount-rate 0.9 --eligibility-trace-decay-rate 0.3 --learning-rate 0.01 --secondary-learning-rate 0.2 --policy on-policy --split-update-count 30 --num-blocks 4 --split-test value --unsplit-test value --unsplit-update-count 100 --resplit-bias none --rules rules/blocks-world-2-distractors.carli
# ./$ENVIRONMENT -o null --seed $SEED --num-steps 10000 --split-min 2 "$@"
# ./$ENVIRONMENT -o null --seed $SEED --num-steps 10000 --random-start true --learning-rate 0.1 --discount-rate 0.999 --epsilon-greedy 0.1 --policy off-policy --pseudoepisode-threshold 20 --credit-assignment even --split-min 5 --split-max 11 "$@"
#pprof --gv ./$ENVIRONMENT ./$ENVIRONMENT.prof
#pprof --callgrind ./$ENVIRONMENT ./$ENVIRONMENT.prof > $ENVIRONMENT.callgrind