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
9bb2a68c
Commit
9bb2a68c
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
caa66aca
Branches
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/icing/pirep_goes.py
+8
-4
8 additions, 4 deletions
modules/icing/pirep_goes.py
with
8 additions
and
4 deletions
modules/icing/pirep_goes.py
+
8
−
4
View file @
9bb2a68c
...
@@ -1795,6 +1795,8 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
...
@@ -1795,6 +1795,8 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
print
(
'
Icing:
'
,
np
.
histogram
(
nda
[
iint
==
1
],
bins
=
5
)[
0
])
print
(
'
Icing:
'
,
np
.
histogram
(
nda
[
iint
==
1
],
bins
=
5
)[
0
])
print
(
'
---------------------------
'
)
print
(
'
---------------------------
'
)
print
(
'
No Icing(Negative): mean cld_dz, cld_hgt
'
)
print
(
'
Icing(Positive):
"
,
"'
)
print
(
'
level 0:
'
)
print
(
'
level 0:
'
)
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
(
iint
==
0
)]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
(
iint
==
0
)]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
(
iint
==
0
)]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
(
iint
==
0
)]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
(
iint
==
1
)]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
(
iint
==
1
)]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
(
iint
==
1
)]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
(
iint
==
1
)]))
...
@@ -1832,10 +1834,12 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
...
@@ -1832,10 +1834,12 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
false_ice
=
(
labels
==
0
)
&
(
preds
==
1
)
false_ice
=
(
labels
==
0
)
&
(
preds
==
1
)
print
(
'
Total (Positive/Icing Prediction:
'
)
print
(
'
Total (Positive/Icing Prediction:
'
)
print
(
'
True icing:
'
,
np
.
histogram
(
nda
[
true_ice
],
bins
=
5
)[
0
])
print
(
'
True icing:
'
,
np
.
histogram
(
nda
[
true_ice
],
bins
=
5
)[
0
])
print
(
'
-------------------------
'
)
print
(
'
-------------------------
'
)
print
(
'
False icing (False Positive/Alarm):
'
,
np
.
histogram
(
nda
[
false_ice
],
bins
=
5
)[
0
])
print
(
'
False icing (False Positive/Alarm):
'
,
np
.
histogram
(
nda
[
false_ice
],
bins
=
5
)[
0
])
print
(
'
By flight level:
'
)
print
(
'
By flight level:
'
)
print
(
'
No Icing(Negative): mean cld_dz, cld_hgt
'
)
print
(
'
Icing(Positive):
"
,
"'
)
print
(
'
level 0:
'
)
print
(
'
level 0:
'
)
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
false_ice
]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
false_ice
]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
false_ice
]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
false_ice
]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
true_ice
]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
true_ice
]))
print
(
np
.
nanmean
(
cld_dz
[(
nda
==
0
)
&
true_ice
]),
np
.
nanmean
(
cld_hgt
[(
nda
==
0
)
&
true_ice
]))
...
@@ -1866,9 +1870,9 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
...
@@ -1866,9 +1870,9 @@ def analyze(preds_file, test_file='/Users/tomrink/data/icing_ml/tiles_2021092400
false_no_ice
=
(
labels
==
1
)
&
(
preds
==
0
)
false_no_ice
=
(
labels
==
1
)
&
(
preds
==
0
)
print
(
'
Total (Negative/No Icing Prediction:
'
)
print
(
'
Total (Negative/No Icing Prediction:
'
)
print
(
'
True no icing:
'
,
np
.
histogram
(
nda
[
true_no_ice
],
bins
=
5
)[
0
])
print
(
'
True no icing:
'
,
np
.
histogram
(
nda
[
true_no_ice
],
bins
=
5
)[
0
])
print
(
'
-------------------------
'
)
print
(
'
-------------------------
'
)
print
(
'
* False no icing (False Negative/Miss) *:
'
,
np
.
histogram
(
nda
[
false_no_ice
],
bins
=
5
)[
0
])
print
(
'
* False no icing (False Negative/Miss) *:
'
,
np
.
histogram
(
nda
[
false_no_ice
],
bins
=
5
)[
0
])
print
(
'
-------------------------
'
)
print
(
'
-------------------------
'
)
print
(
'
level 0:
'
)
print
(
'
level 0:
'
)
...
...
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