Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
automatic-extraction-growth-conditions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Estefani Gaytan Nunez
2020-02-11 18:21:33 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e8508e170391780e5c1903f44f6db75e5c9879c9
e8508e17
1 parent
45d4bcd6
upload
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
CRF/bin/figures/figures-report.py
CRF/bin/figures/figures-report.py
View file @
e8508e1
...
...
@@ -38,7 +38,7 @@ def savescreen(output, dic, path):
if
output
:
DF
.
from_dict
(
dic
)
.
to_csv
(
path
+
'.csv'
,
sep
=
"
\t
"
,
index
=
True
)
def
maxPoint
(
yvalues
):
scorelist
=
list
(
yvalues
)
scorelist
=
[
float
(
i
)
for
i
in
yvalues
]
y
=
max
(
scorelist
)
x
=
scorelist
.
index
(
y
)
return
(
x
,
y
)
...
...
@@ -97,10 +97,16 @@ if __name__ == '__main__':
plt
.
grid
()
plt
.
plot
(
scoresTable
[
'precision'
],
'co--'
,
label
=
'precision'
,
linewidth
=
1
,
markersize
=
4
)
x
,
y
=
maxPoint
(
scoresTable
[
'precision'
])
plt
.
plot
(
x
,
y
,
markersize
=
10
)
plt
.
plot
(
x
,
y
,
markersize
=
10
)
plt
.
plot
(
scoresTable
[
'f1-score'
],
'bo--'
,
label
=
'F1'
,
linewidth
=
1
,
markersize
=
4
)
x
,
y
=
maxPoint
(
scoresTable
[
'f1-score'
])
plt
.
plot
(
x
,
y
,
markersize
=
10
)
plt
.
plot
(
scoresTable
[
'recall'
],
'mo--'
,
label
=
'recall'
,
linewidth
=
1
,
markersize
=
4
)
x
,
y
=
maxPoint
(
scoresTable
[
'recall'
])
plt
.
plot
(
x
,
y
,
markersize
=
10
)
plt
.
plot
(
scoresTable
[
'CV'
],
'ro--'
,
label
=
'CV'
,
linewidth
=
1
,
markersize
=
4
)
x
,
y
=
maxPoint
(
scoresTable
[
'CV'
])
plt
.
plot
(
x
,
y
,
markersize
=
10
)
for
k
,
v
in
dict
(
scoresTable
)
.
items
():
for
a
,
b
in
zip
(
range
(
64
),
v
):
plt
.
text
(
a
-
0.5
,
float
(
b
)
+
0.0020
,
b
[
0
:
6
],
fontsize
=
5
)
...
...
Please
register
or
login
to post a comment