-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from BerkeleyLab/progressive-refinement
feat(train.sh): add outer loop for refinement
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |