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 17:30:48 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
24f28a6ce26501dc5f3297b69fae1db3fe32b610
24f28a6c
1 parent
8bde9197
upload
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
CRF/bin/figures/figures-report.py
CRF/figures/enero/FigureGrid_v14.png
CRF/bin/figures/figures-report.py
View file @
24f28a6
...
...
@@ -37,6 +37,10 @@ __author__ = 'egaytan'
def
savescreen
(
output
,
dic
,
path
):
if
output
:
DF
.
from_dict
(
dic
)
.
to_csv
(
path
+
'.csv'
,
sep
=
"
\t
"
,
index
=
True
)
def
plotMax
(
yvalues
,
size
):
scorelist
=
list
(
yvalues
)
maxscore
=
max
(
scorelist
)
plt
.
plot
(
scorelist
.
index
(
maxscore
),
maxscore
,
markersize
=
size
)
####################################################################################
# MAIN PROGRAM #
...
...
@@ -89,13 +93,15 @@ if __name__ == '__main__':
plt
.
ylabel
(
"score"
)
plt
.
rcParams
.
update
()
plt
.
grid
()
plt
.
plot
(
scoresTable
[
'precision'
],
'co--'
,
label
=
'precision'
,
linewidth
=
1
,
markersize
=
6
)
plt
.
plot
(
scoresTable
[
'f1-score'
],
'bo--'
,
label
=
'F1'
,
linewidth
=
1
,
markersize
=
6
)
plt
.
plot
(
scoresTable
[
'recall'
],
'mo--'
,
label
=
'recall'
,
linewidth
=
1
,
markersize
=
6
)
plt
.
plot
(
scoresTable
[
'CV'
],
'ro--'
,
label
=
'CV'
,
linewidth
=
1
,
markersize
=
6
)
plt
.
plot
(
scoresTable
[
'precision'
],
'co--'
,
label
=
'precision'
,
linewidth
=
1
,
markersize
=
4
)
plotMax
(
scoresTable
[
'precision'
],
8
)
plt
.
plot
(
scoresTable
[
'f1-score'
],
'bo--'
,
label
=
'F1'
,
linewidth
=
1
,
markersize
=
4
)
plt
.
plot
(
scoresTable
[
'recall'
],
'mo--'
,
label
=
'recall'
,
linewidth
=
1
,
markersize
=
4
)
plt
.
plot
(
scoresTable
[
'CV'
],
'ro--'
,
label
=
'CV'
,
linewidth
=
1
,
markersize
=
4
)
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
)
#plt.plot(max(scoresTable['precision']), scoresTable['precision'].index(max(scoresTable['precision'])), markersize=8)
plt
.
legend
(
loc
=
'upper left'
)
plt
.
xticks
(
range
(
64
),
list
(
scoresTable
.
index
)[
0
:
65
],
rotation
=
90
,
fontsize
=
8
)
plt
.
xticks
(
range
(
64
),
list
(
scoresTable
.
index
)[
0
:
65
],
rotation
=
270
,
fontsize
=
8
)
fig
.
savefig
(
imageName
,
bbox_inches
=
'tight'
,
pad_inches
=
0.3
)
...
...
CRF/figures/enero/FigureGrid_v14.png
View file @
24f28a6
232 KB
|
W:
|
H:
228 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Please
register
or
login
to post a comment