<commit_before>#!/bin/bash


#program options
GPU=true
GUI=false
rom=./roms/breakout.bin
epsilon_start=1
epsilon_min=0.1
epsilon_decay=0.99
epsilon_explore_idx=1000
replay_memory_capacity=100000
replay_start_size=10000
sampleStrategy="uniform"
update_frequency=1000
discount_factor=0.98
solver=./prototxt/aleSolver.prototxt
skip_frame=4
show_frame=false
model=./models/rmsprop_nature_iter_100000.caffemodel
evaluate=false
eval_epsilon=0.05


args="--gpu ${GPU} --gui ${GUI} --rom ${rom}  --eval_epsilon ${eval_epsilon} --epsilon_start ${epsilon_start} --epsilon_min ${epsilon_min} --epsilon_decay ${epsilon_decay} --epsilon_explore_idx ${epsilon_explore_idx} --replay_memory_capacity ${replay_memory_capacity} --replay_start_size ${replay_start_size} --sampleStrategy ${sampleStrategy} --update_frequency ${update_frequency} --discount_factor ${discount_factor} --solver ${solver} --skip_frame ${skip_frame} --show_frame ${show_frame} --model ${model} --evaluate ${evaluate}"

echo ${args}

# compile project deepRL 
echo "=============================>Compling project: deepRL"
rm CMakeCache.txt
cp CMakeLists.gpu.txt CMakeLists.txt
cmake .
make clean & make -j2 2> build.errlog

#run , you need set solver_mode: GPU in your solver.prototxt
./deepRL ${args}
<commit_msg>fix q and target_net_ update error<commit_after>#!/bin/bash


#program options
GPU=true
GUI=false
rom=./roms/breakout.bin
epsilon_start=1
epsilon_min=0.1
epsilon_decay=0.99
epsilon_explore_idx=1000
replay_memory_capacity=100000
replay_start_size=10000
sampleStrategy="uniform"
update_frequency=4
discount_factor=0.98
solver=./prototxt/aleSolver.prototxt
skip_frame=4
show_frame=false
model=./models/rmsprop_nature_iter_100000.caffemodel
evaluate=false
eval_epsilon=0.05
target_q_freq=1000

args="--gpu ${GPU} --gui ${GUI} --rom ${rom} --target_q_freq ${target_q_freq} --eval_epsilon ${eval_epsilon} --epsilon_start ${epsilon_start} --epsilon_min ${epsilon_min} --epsilon_decay ${epsilon_decay} --epsilon_explore_idx ${epsilon_explore_idx} --replay_memory_capacity ${replay_memory_capacity} --replay_start_size ${replay_start_size} --sampleStrategy ${sampleStrategy} --update_frequency ${update_frequency} --discount_factor ${discount_factor} --solver ${solver} --skip_frame ${skip_frame} --show_frame ${show_frame} --model ${model} --evaluate ${evaluate}"

echo ${args}

# compile project deepRL 
echo "=============================>Compling project: deepRL"
rm CMakeCache.txt
cp CMakeLists.gpu.txt CMakeLists.txt
cmake .
make clean & make -j2 2> build.errlog

#run , you need set solver_mode: GPU in your solver.prototxt
./deepRL ${args}

{'fraction_non_alphanumeric': 0.14942528735632185, 'fraction_numerical': 0.03103448275862069, 'mean_word_length': 6.656891495601173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '555825', 'n_tokens_mistral': 956, 'n_tokens_neox': 882, 'n_words': 186}