Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(train.sh): add outer loop for refinement #176

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading