Skip to content
Snippets Groups Projects
Commit 8e7090b4 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Iterate loss functions.

parent 71936351
No related branches found
No related tags found
No related merge requests found
......@@ -4,22 +4,38 @@ conda activate climax
# move to project repository
cd ~/git/climax
# loss functions
LOSS=(BernoulliGammaLoss(min_amount=1) BernoulliWeibullLoss(min_amount=1))
# wet day thresholds to test
# WET_DAY_THRESHOLDS=(0 0.5 1 2 3 5)
LAMBDA = (0 0.000001 0.00001 0.0001 0.001 0.01)
# for w in ${WET_DAY_THRESHOLDS[@]}; do
# change wet day threshold in configuration
# sed -i "s/min_amount\s*=.*/min_amount=$w)/" ./climax/main/config.py
# weight decay values to test
LAMBDA=(0 0.000001 0.00001 0.0001 0.001 0.01)
# iterate over loss functions
for loss in ${LOSS[@]}; do
# change loss function in configuration
sed -i "s/LOSS\s*=.*/LOSS=$loss/" ./climax/main/config.py
# iterate over weight decay values
for lambda in ${LAMBDA[@]}; do
# change weight regularization in configuration
sed -i "s/LAMBDA\s*=.*/LAMBDA=$lambda)/" ./climax/main/config.py
# run downscaling
# python climax/main/downscale.py
# done
# run downscaling
# python climax/main/downscale.py
python climax/main/downscale_train.py
python climax/main/downscale_infer.py
done
for lambda in ${LAMBDA[@]}; do
# change weight regularization in configuration
sed -i "s/LAMBDA\s*=.*/LAMBDA=$lambda)/" ./climax/main/config.py
# for w in ${WET_DAY_THRESHOLDS[@]}; do
# change wet day threshold in configuration
# sed -i "s/min_amount\s*=.*/min_amount=$w)/" ./climax/main/config.py
# run downscaling
python climax/main/downscale.py
# run downscaling
# python climax/main/downscale.py
# python climax/main/downscale_train.py
# python climax/main/downscale_infer.py
# done
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment