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

Sensitivity analysis of regularization.

parent 894a0199
No related branches found
No related tags found
No related merge requests found
...@@ -5,15 +5,21 @@ conda activate climax ...@@ -5,15 +5,21 @@ conda activate climax
cd ~/git/climax cd ~/git/climax
# wet day thresholds to test # wet day thresholds to test
WET_DAY_THRESHOLDS=(0 0.5 1 2 3 5) # 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 # for w in ${WET_DAY_THRESHOLDS[@]}; do
# change wet day threshold in configuration # change wet day threshold in configuration
sed -i "s/min_amount\s*=.*/min_amount=$w)/" ./climax/main/config.py # sed -i "s/min_amount\s*=.*/min_amount=$w)/" ./climax/main/config.py
# model training
python climax/main/downscale_train.py
# model inference # run downscaling
python climax/main/downscale_infer.py # python climax/main/downscale.py
# done
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 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