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
Kevin Meza Landeros
2019-09-23 23:02:16 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f43d99bb4d91a27dc22a96a7758e8fb0fcf3d628
f43d99bb
1 parent
c9227517
Update figures-report.py
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
CRF/bin/figures-report.py
CRF/bin/figures-report.py
View file @
f43d99b
...
...
@@ -89,25 +89,25 @@ if __name__ == '__main__':
print
(
'------------------------------- SAVING TABLE --------------------------------
\n
'
)
with
open
(
os
.
path
.
join
(
options
.
inputPath
,
str
(
options
.
figureName
)
),
'w'
)
as
File
:
scoresTable
=
DF
(
scores
)
.
T
imageName
=
os
.
path
.
join
(
options
.
outputPath
,
options
.
figureName
)
ylab
=
"score"
,
fig
=
plt
.
figure
()
plt
.
grid
(
False
)
plt
.
rcParams
.
update
({
'font.size'
:
15
})
fig
.
set_figheight
(
13
)
fig
.
set_figwidth
(
20
)
plt
.
xlabel
(
"Runs"
)
plt
.
ylabel
(
"score"
)
plt
.
xticks
(
range
(
8
),
scoresTable
[
"CV"
]
.
index
)
plt
.
plot
(
scoresTable
[
'CV'
],
"--"
,
color
=
"red"
,
label
=
"CV"
)
plt
.
plot
(
scoresTable
[
'precision'
],
color
=
"blue"
,
label
=
"precision"
)
plt
.
plot
(
scoresTable
[
'f1-score'
],
color
=
"orange"
,
label
=
"F1"
)
plt
.
plot
(
scoresTable
[
'recall'
],
color
=
"g"
,
label
=
"recall"
)
plt
.
legend
(
loc
=
'lower right'
)
plt
.
tight_layout
()
fig
.
savefig
(
imageName
,
pad_inches
=
0.5
)
scoresTable
=
DF
(
scores
)
.
T
imageName
=
os
.
path
.
join
(
options
.
outputPath
,
options
.
figureName
)
ylab
=
"score"
,
fig
=
plt
.
figure
()
plt
.
grid
(
False
)
plt
.
rcParams
.
update
({
'font.size'
:
15
})
fig
.
set_figheight
(
13
)
fig
.
set_figwidth
(
20
)
plt
.
xlabel
(
"Runs"
)
plt
.
ylabel
(
"score"
)
plt
.
xticks
(
range
(
8
),
scoresTable
[
"CV"
]
.
index
)
plt
.
plot
(
scoresTable
[
'CV'
],
"--"
,
color
=
"red"
,
label
=
"CV"
)
plt
.
plot
(
scoresTable
[
'precision'
],
color
=
"blue"
,
label
=
"precision"
)
plt
.
plot
(
scoresTable
[
'f1-score'
],
color
=
"orange"
,
label
=
"F1"
)
plt
.
plot
(
scoresTable
[
'recall'
],
color
=
"g"
,
label
=
"recall"
)
plt
.
legend
(
loc
=
'lower right'
)
plt
.
tight_layout
()
fig
.
savefig
(
imageName
,
pad_inches
=
0.5
)
...
...
Please
register
or
login
to post a comment