diff --git a/Scripts/downscale.sh b/Scripts/downscale.sh index eff8c0acadb6864e92e0f286132356314e96d161..5938827ef5e909e4835dc6444e4e798c7c86a2c2 100644 --- a/Scripts/downscale.sh +++ b/Scripts/downscale.sh @@ -5,23 +5,24 @@ conda activate climax cd ~/git/climax # loss functions -LOSS=(BernoulliGammaLoss BernoulliWeibullLoss) +LOSS=(BernoulliGammaLoss(min_amount=1) BernoulliWeibullLoss(min_amount=1) + L1Loss() MSELoss()) # wet day thresholds to test # WET_DAY_THRESHOLDS=(0 0.5 1 2 3 5) # weight decay values to test -LAMBDA=(0 0.000001 0.00001 0.0001 0.001 0.01) +LAMBDA=(0 0.0000001 0.000001 0.00001 0.0001 0.001 0.01 0.1 1) # iterate over loss functions for loss in ${LOSS[@]}; do # change loss function in configuration - sed -i "s/LOSS\s*=.*/LOSS=$loss(min_amount=1)/" ./climax/main/config.py + 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 + sed -i "s/LAMBDA\s*=.*/LAMBDA=$lambda)/" ./climax/main/config.py # run downscaling # python climax/main/downscale.py