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
04805dcc
Commit
04805dcc
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Bash compliance.
parent
98e1f7c8
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
+9
-4
9 additions, 4 deletions
Scripts/downscale.sh
with
9 additions
and
4 deletions
Scripts/downscale.sh
+
9
−
4
View file @
04805dcc
...
@@ -5,7 +5,7 @@ conda activate climax
...
@@ -5,7 +5,7 @@ conda activate climax
cd
~/git/climax
cd
~/git/climax
# loss functions
# loss functions
LOSS
=(
BernoulliGammaLoss
(
min_amount
=
1
)
BernoulliWeibullLoss
(
min_amount
=
1
)
L1Loss
()
MSELoss
()
)
LOSS
=(
L1Loss
BernoulliGammaLoss BernoulliWeibullLoss MSELoss
)
# 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)
...
@@ -15,13 +15,18 @@ LAMBDA=(0 0.0000001 0.000001 0.00001 0.0001 0.001 0.01 0.1 1)
...
@@ -15,13 +15,18 @@ LAMBDA=(0 0.0000001 0.000001 0.00001 0.0001 0.001 0.01 0.1 1)
# iterate over loss functions
# iterate over loss functions
for
loss
in
${
LOSS
[@]
}
;
do
for
loss
in
${
LOSS
[@]
}
;
do
# change loss function in configuration
sed
-i
"s/LOSS
\s
*=.*/LOSS=
$loss
/"
./climax/main/config.py
# change loss function in configuration
if
[
"
$loss
"
=
"L1Loss"
]
||
[
"
$loss
"
=
"MSELoss"
]
;
then
sed
-i
"s/LOSS
\s
*=.*/LOSS=
$loss
()/"
./climax/main/config.py
else
sed
-i
"s/LOSS
\s
*=.*/LOSS=
$loss
(min_amount=1)/"
./climax/main/config.py
fi
# iterate over weight decay values
# iterate over weight decay values
for
lambda
in
${
LAMBDA
[@]
}
;
do
for
lambda
in
${
LAMBDA
[@]
}
;
do
# change weight regularization in configuration
# 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
# run downscaling
# python climax/main/downscale.py
# python climax/main/downscale.py
...
...
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