Skip to content

Commit

Permalink
Merge pull request #176 from BerkeleyLab/progressive-refinement
Browse files Browse the repository at this point in the history
feat(train.sh): add outer loop for refinement
  • Loading branch information
rouson authored Jul 15, 2024
2 parents 6960da6 + 176510d commit 85cef08
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions cloud-microphysics/train.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/bin/zsh
i=0
while (( i++ < 120)); do
if [ -f stop ]; then
echo "---------> File named 'stop' found. train.sh removing 'stop' and exiting <-------------"
rm stop
exit 0
fi
print ""
echo "---------> Run $i <-------------"
./build/run-fpm.sh run train-cloud-microphysics -- --base training --epochs 100000 --bins 10 --start 720 --report 1000
j=2
while (( j++ < 10)); do
while (( i++ < 12)); do
if [ -f stop ]; then
echo "---------> 'stop' file found -- removing 'stop' & exiting <-------------"
rm stop
exit 0
fi
print ""
echo "---------> Run $i <--------->"
./train-cloud-microphysics --base training --epochs 1000000 --bins $j --report 1000 --start 360 --stride 10
done
done

0 comments on commit 85cef08

Please sign in to comment.