Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Tom Rink
python
Commits
b36c2816
Commit
b36c2816
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
32ff55c9
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
modules/deeplearning/icing_cnn.py
+13
-3
13 additions, 3 deletions
modules/deeplearning/icing_cnn.py
with
13 additions
and
3 deletions
modules/deeplearning/icing_cnn.py
+
13
−
3
View file @
b36c2816
...
...
@@ -117,16 +117,26 @@ def build_residual_block(input, drop_rate, num_neurons, activation, block_name,
class
IcingIntensityNN
:
def
__init__
(
self
,
day_night
=
'
DAY
'
,
gpu_device
=
0
,
datapath
=
None
):
def
__init__
(
self
,
day_night
=
'
DAY
'
,
l1b_andor_l2
=
'
BOTH
'
,
gpu_device
=
0
,
datapath
=
None
):
if
day_night
==
'
DAY
'
:
self
.
train_params_l1b
=
train_params_l1b_day
self
.
train_params_l2
=
train_params_l2_day
self
.
train_params
=
train_params_l1b_day
+
train_params_l2_day
if
l1b_andor_l2
==
'
BOTH
'
:
self
.
train_params
=
train_params_l1b_day
+
train_params_l2_day
elif
l1b_andor_l2
==
'
l1b
'
:
self
.
train_params
=
train_params_l1b_day
elif
l1b_andor_l2
==
'
l2
'
:
self
.
train_params
=
train_params_l2_day
else
:
self
.
train_params_l1b
=
train_params_l1b_night
self
.
train_params_l2
=
train_params_l2_night
self
.
train_params
=
train_params_l1b_night
+
train_params_l2_night
if
l1b_andor_l2
==
'
BOTH
'
:
self
.
train_params
=
train_params_l1b_night
+
train_params_l2_night
elif
l1b_andor_l2
==
'
l1b
'
:
self
.
train_params
=
train_params_l1b_night
elif
l1b_andor_l2
==
'
l2
'
:
self
.
train_params
=
train_params_l2_night
self
.
train_data
=
None
self
.
train_label
=
None
...
...
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