Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
earth_observation_public
Climax
Commits
8e7090b4
Commit
8e7090b4
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Iterate loss functions.
parent
71936351
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Scripts/downscale.sh
+28
-12
28 additions, 12 deletions
Scripts/downscale.sh
with
28 additions
and
12 deletions
Scripts/downscale.sh
+
28
−
12
View file @
8e7090b4
...
...
@@ -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 we
ight regularization
in configuration
sed
-i
"s/
LAMBDA
\s
*=.*/LAMBDA=
$lambda
)/"
./climax/main/config.py
# for w in ${WET_DAY_THRESHOLDS
[@]}; do
# change we
t 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment