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
ec6d1af3
Commit
ec6d1af3
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Indentation.
parent
eef8e827
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Scripts/grid_search.sh
+5
-5
5 additions, 5 deletions
Scripts/grid_search.sh
with
5 additions
and
5 deletions
Scripts/grid_search.sh
+
5
−
5
View file @
ec6d1af3
...
...
@@ -41,9 +41,9 @@ for predictand in ${PREDICTAND[@]}; do
# change loss function in configuration
if
[
"
$loss
"
=
"L1Loss"
]
||
[
"
$loss
"
=
"MSELoss"
]
;
then
sed
-i
"s/LOSS
\s
*=.*/LOSS=
$loss
()/"
./climax/main/config.py
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
sed
-i
"s/LOSS
\s
*=.*/LOSS=
$loss
(min_amount=1)/"
./climax/main/config.py
fi
# iterate over the optimizer
...
...
@@ -61,7 +61,7 @@ for predictand in ${PREDICTAND[@]}; do
# iterate over weight decay values
for
lambda
in
${
LAMBDA
[@]
}
;
do
# change weight regularization in configuration
sed
-i
"s/'weight_decay':.*/'weight_decay':
$lambda
/"
./climax/main/config.py
sed
-i
"s/'weight_decay':.*/'weight_decay':
$lambda
/"
./climax/main/config.py
# run downscaling
# python climax/main/downscale.py
...
...
@@ -73,9 +73,9 @@ for predictand in ${PREDICTAND[@]}; do
# iterate over weight decay values
for
lambda
in
${
LAMBDA
[@]
}
;
do
# change weight regularization in configuration
sed
-i
"s/'weight_decay':.*/'weight_decay':
$lambda
/"
./climax/main/config.py
sed
-i
"s/'weight_decay':.*/'weight_decay':
$lambda
/"
./climax/main/config.py
# run downscaling
# run downscaling
# python climax/main/downscale.py
python climax/main/downscale_train.py
python climax/main/downscale_infer.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