Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ClassifyStorms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Leonie Pick
ClassifyStorms
Commits
a0d54ce9
Commit
a0d54ce9
authored
Aug 27, 2019
by
Leonie Pick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction of plotting mistake
parent
cd27cf72
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
153 additions
and
325 deletions
+153
-325
.gitignore
.gitignore
+1
-2
.ipynb_checkpoints/ClassifyStorms-checkpoint.ipynb
.ipynb_checkpoints/ClassifyStorms-checkpoint.ipynb
+112
-164
ClassifyStorms.ipynb
ClassifyStorms.ipynb
+32
-155
Plots.py
Plots.py
+8
-4
No files found.
.gitignore
View file @
a0d54ce9
...
...
@@ -3,8 +3,7 @@ Dump/
# Don't track the following files
Input.nc
Input_old.nc
Input_master.nc
Input_development.nc
Readme.md
# Don't track all files with these endings:
...
...
.ipynb_checkpoints/ClassifyStorms-checkpoint.ipynb
View file @
a0d54ce9
This diff is collapsed.
Click to expand it.
ClassifyStorms.ipynb
View file @
a0d54ce9
This diff is collapsed.
Click to expand it.
Plots.py
View file @
a0d54ce9
...
...
@@ -1057,16 +1057,20 @@ def MusicalClassified(Time,HTime,Reference,Source,Storms,Class_Proba,Class,Kp_al
fig2
.
subplots_adjust
(
bottom
=
0.06
,
top
=
0.9
,
left
=
0.115
,
right
=
0.99
,
hspace
=
0.00
,
wspace
=
0.00
)
ClassPositive
=
np
.
where
(
Class
==
1
)[
0
]
ClassNegative
=
np
.
where
(
Class
==
0
)[
0
]
nPos
,
binsPos
=
np
.
histogram
(
HTime
[
Storms
[
ClassPositive
],
4
],
np
.
arange
(
1900
,
2017
,
1
))
nNeg
,
binsNeg
=
np
.
histogram
(
HTime
[
Storms
[
~
ClassPosi
tive
],
4
],
np
.
arange
(
1900
,
2017
,
1
))
nNeg
,
binsNeg
=
np
.
histogram
(
HTime
[
Storms
[
ClassNega
tive
],
4
],
np
.
arange
(
1900
,
2017
,
1
))
Training
=
np
.
where
(
Reference
[:,
2
]
==
1
)[
0
]
ClassPositiveRef
=
np
.
where
(
Reference
[
Training
,
0
]
==
1
)[
0
]
nPosRef
,
binsRef
=
np
.
histogram
(
HTime
[
Reference
[
Training
[
ClassPositiveRef
],
1
]],
np
.
arange
(
1900
,
2017
,
1
))
nNegRef
,
binsRef
=
np
.
histogram
(
HTime
[
Reference
[
Training
[
~
ClassPositiveRef
],
1
]],
np
.
arange
(
1900
,
2017
,
1
))
ClassNegativeRef
=
np
.
where
(
Reference
[
Training
,
0
]
==
0
)[
0
]
nPosRef
,
binsRef
=
np
.
histogram
(
HTime
[
Reference
[
Training
[
ClassPositiveRef
],
1
],
4
],
np
.
arange
(
1900
,
2017
,
1
))
nNegRef
,
binsRef
=
np
.
histogram
(
HTime
[
Reference
[
Training
[
ClassNegativeRef
],
1
],
4
],
np
.
arange
(
1900
,
2017
,
1
))
axs2b
=
axs2
.
twinx
()
axs2b
.
invert_yaxis
()
#print(np.sum(nPosRef+nNegRef)*100/np.sum(nPos[95:]+nNeg[95:]))
#print(np.sum(nPosRef+nNegRef)*100/np.sum(nPos+nNeg))
axs2
.
bar
(
binsPos
[
0
:
-
1
],
height
=
nPosRef
,
width
=
1
,
align
=
'edge'
,
color
=
'maroon'
,
edgecolor
=
'None'
,
alpha
=
0.5
,
label
=
'Training ICMEs'
,
zorder
=
0
)
axs2
.
bar
(
binsPos
[
0
:
-
1
],
height
=
nPos
,
width
=
1
,
align
=
'edge'
,
color
=
'None'
,
edgecolor
=
'maroon'
,
linewidth
=
1
,
label
=
'Predicted ICMEs'
,
zorder
=
1
)
#axs2.bar(binsPos[0:-1],height=nNegRef,width=1,bottom=nPosRef,align='edge',color='midnightblue',edgecolor='None',alpha=0.5,label='Training C/SIRs',zorder=0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment