-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_new_training.sh
executable file
·36 lines (28 loc) · 1.58 KB
/
run_new_training.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
29
30
31
32
33
34
35
36
ERA=$1
CHANNELS=$2
NTUPLETAG=$3
VERSION=$4
SHARDVERSION=$5
# # first create the training files
# ./create_ml_training_files.sh $CHANNELS $ERA $NTUPLETAG $VERSION
# # copy the training config
# mkdir -p /work/sbrommer/smhtt_ul/training_files/training_$VERSION
# cp -r /work/sbrommer/smhtt_ul/training/KingMaker/sm-htt-analysis/${VERSION} /work/sbrommer/smhtt_ul/training_files/training_$VERSION
# # then run law to create the training
# cd "/work/sbrommer/smhtt_ul/training/KingMaker/"
# source /work/sbrommer/smhtt_ul/training/KingMaker/setup.sh ML_train
# # then run the training
# law run RunAllAnalysisTrainings --analysis-config sm-htt-analysis/$VERSION/sm.yaml --RunTraining-production-tag training_${VERSION}_1 --RunTesting-production-tag testing_${VERSION}_1 --CreateTrainingDataShard-production-tag shard_${SHARDVERSION}_1
# copy the testing output
cd "/work/sbrommer/smhtt_ul/training_files/training_$VERSION"
for FOLDER in /storage/gridka-nrg/sbrommer/LAW_storage/testing_${VERSION}_1/RunTesting/sm_${ERA}_* ; do
cp $FOLDER/keras_test_results.tar.gz /work/sbrommer/smhtt_ul/training_files/training_$VERSION
# untar the testing output
tar -xvzf keras_test_results.tar.gz
done
cd "/work/sbrommer/smhtt_ul/training_files"
# # then run the application
./generate_friends.sh $CHANNELS $ERA $NTUPLETAG training_$VERSION /storage/gridka-nrg/sbrommer/LAW_storage/training_${VERSION}_1/RunTraining/ PRODUCTION
# then run the application
./generate_friends.sh $CHANNELS $ERA $NTUPLETAG training_$VERSION /storage/gridka-nrg/sbrommer/LAW_storage/training_${VERSION}_1/RunTraining/ COLLECT
echo "Done"