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
2019-09-22 15:11:55 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
900a2baca39438dbd12cc81c21eb7dc28ce62bac
900a2bac
1 parent
c9227517
upload
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
31 additions
and
6 deletions
CRF/bin/FiguresGrid_v12_variants_v12.png
CRF/bin/figures-tag-report.py
CRF/figures/FiguresGrid_sep10_v11.png
CRF/figures/FiguresGrid_sep17_v11.png
CRF/bin/FiguresGrid_v12.png → CRF/figures/FiguresGrid_sep17_v12.png
CRF/figures/FiguresGrid_sep17_variants_v11.png
CRF/bin/FiguresGrid_variants_v12.png → CRF/figures/FiguresGrid_sep17_variants_v12.png
CRF/reports/sep10/report_Run1_v11.txt → CRF/reports/sep17/report_Run1_v11.txt
CRF/reports/sep10/report_Run2_v11.txt → CRF/reports/sep17/report_Run2_v11.txt
CRF/reports/sep10/report_Run3_v11.txt → CRF/reports/sep17/report_Run3_v11.txt
CRF/reports/sep10/report_Run4_v11.txt → CRF/reports/sep17/report_Run4_v11.txt
CRF/reports/sep10/report_Run5_v11.txt → CRF/reports/sep17/report_Run5_v11.txt
CRF/reports/sep10/report_Run6_v11.txt → CRF/reports/sep17/report_Run6_v11.txt
CRF/reports/sep10/report_Run7_v11.txt → CRF/reports/sep17/report_Run7_v11.txt
CRF/reports/sep10/report_Run8_v11.txt → CRF/reports/sep17/report_Run8_v11.txt
CRF/reports/report_Run_1_v12.txt → CRF/reports/sep17/report_Run_1_v12.txt
CRF/reports/report_Run_1_v13.txt → CRF/reports/sep17/report_Run_1_v13.txt
CRF/reports/report_Run_2_v12.txt → CRF/reports/sep17/report_Run_2_v12.txt
CRF/reports/report_Run_2_v13.txt → CRF/reports/sep17/report_Run_2_v13.txt
CRF/reports/report_Run_3_v12.txt → CRF/reports/sep17/report_Run_3_v12.txt
CRF/reports/report_Run_3_v13.txt → CRF/reports/sep17/report_Run_3_v13.txt
CRF/reports/report_Run_4_v12.txt → CRF/reports/sep17/report_Run_4_v12.txt
CRF/reports/report_Run_4_v13.txt → CRF/reports/sep17/report_Run_4_v13.txt
CRF/reports/report_Run_5_v12.txt → CRF/reports/sep17/report_Run_5_v12.txt
CRF/reports/report_Run_5_v13.txt → CRF/reports/sep17/report_Run_5_v13.txt
CRF/reports/report_Run_6_v12.txt → CRF/reports/sep17/report_Run_6_v12.txt
CRF/reports/report_Run_6_v13.txt → CRF/reports/sep17/report_Run_6_v13.txt
CRF/reports/report_Run_7_v12.txt → CRF/reports/sep17/report_Run_7_v12.txt
CRF/reports/report_Run_7_v13.txt → CRF/reports/sep17/report_Run_7_v13.txt
CRF/reports/report_Run_8_v12.txt → CRF/reports/sep17/report_Run_8_v12.txt
CRF/reports/report_Run_8_v13.txt → CRF/reports/sep17/report_Run_8_v13.txt
CRF/bin/FiguresGrid_v12_variants_v12.png
deleted
100644 → 0
View file @
c922751
194 KB
CRF/bin/figures-tag-report.py
View file @
900a2ba
...
...
@@ -4,6 +4,9 @@ from collections import defaultdict as df
import
os
import
random
from
pandas
import
DataFrame
as
DF
#from seaborn import heatmap
import
numpy
as
np
import
numpy.random
import
matplotlib.pyplot
as
plt
# Objective
...
...
@@ -108,10 +111,26 @@ if __name__ == '__main__':
fscore
[
k
]
.
append
(
float
(
tags
[
k
][
2
]))
#support[k].append(tags[k][3])
print
(
DF
(
precision
))
print
(
precision
)
#================================HEATMAP================================#
'''
plt.clf()
plt.title('Precision score by tag heatmap')
plt.ylabel('runs')
plt.xlabel('tags')
plt.imshow(DF(precision))
plt.show()
imageName = str(os.path.join(options.outputPath, options.figureName)) + '_heatmap_' + str(options.version)
fig = plt.figure()
heatmap(DF(precision))
fig.savefig(imageName, bbox_inches='tight', pad_inches = 0.5)
'''
#print(precision)
#lines = ['-', '--', '-.', ':', '.', ',', 'o', 'v', '^', '<', '>', '1', '2', '3', '4', 's', 'p', '*', 'h', 'H', '+', 'x', 'D', 'd', '|', '_']
#================================SINGLE PLOT================================
lines
=
[
'-'
,
'--'
,
'-.'
,
':'
,
'o'
,
'v'
,
'^'
,
'<'
,
'>'
,
's'
,
'p'
,
'*'
,
'H'
,
'+'
,
'x'
,
'D'
,
'|'
]
imageName
=
str
(
o
ptions
.
figureName
)
+
'_'
+
str
(
options
.
version
)
imageName
=
str
(
o
s
.
path
.
join
(
options
.
outputPath
,
options
.
figureName
)
)
+
'_'
+
str
(
options
.
version
)
fig
=
plt
.
figure
()
plt
.
rcParams
.
update
({
'font.size'
:
15
})
fig
.
set_figheight
(
13
)
...
...
@@ -124,13 +143,16 @@ if __name__ == '__main__':
lines
=
[
'r--'
,
'r-.'
,
'r:'
,
'g--'
,
'g-.'
,
'g:'
,
'b--'
,
'b-.'
,
'b:'
,
'm--'
,
'm-.'
,
'm:'
,
'c--'
,
'c-.'
,
'c:'
]
for
i
,
k
in
enumerate
(
tags
.
keys
()):
plt
.
grid
(
False
)
plt
.
plot
(
precision
[
k
],
lines
[
i
],
label
=
k
,
linewidth
=
(
15
-
i
)
*
2
)
plt
.
plot
(
precision
[
k
],
lines
[
i
],
label
=
k
,
linewidth
=
4
)
for
a
,
b
in
zip
(
range
(
8
),
precision
[
k
]):
plt
.
text
(
a
,
b
+
0.03
,
str
(
b
),
fontsize
=
10
)
plt
.
legend
(
loc
=
'lower right'
)
plt
.
tight_layout
()
plt
.
xticks
(
range
(
8
),[
'run1'
,
'run2'
,
'run3'
,
'run4'
,
'run5'
,
'run6'
,
'run7'
,
'run8'
])
fig
.
savefig
(
imageName
,
bbox_inches
=
'tight'
,
pad_inches
=
0.5
)
imageName
=
str
(
o
ptions
.
figureName
)
+
'_variants_'
+
str
(
options
.
version
)
imageName
=
str
(
o
s
.
path
.
join
(
options
.
outputPath
,
options
.
figureName
)
)
+
'_variants_'
+
str
(
options
.
version
)
fig
=
plt
.
figure
()
plt
.
rcParams
.
update
({
'font.size'
:
15
})
fig
.
set_figheight
(
13
)
...
...
@@ -138,11 +160,14 @@ if __name__ == '__main__':
plt
.
xlabel
(
"Runs"
)
plt
.
ylabel
(
"score"
)
plt
.
ylim
(
0.4
,
1.2
)
variantTags
=
[
k
for
k
in
tags
.
keys
()
if
len
(
set
(
tags
[
k
]))
>
1
]
variantTags
=
[
k
for
k
in
tags
.
keys
()
if
len
(
set
(
tags
[
k
]))
>
2
]
#lines = [ 'r^', 'ro', 'g^', 'go', 'b^', 'bo' , 'm^', 'mo', 'c^', 'co', 'ch', 'rh', 'gh', 'bh','mh']
lines
=
[
'r--'
,
'g--'
,
'b--'
,
'm--'
,
'c--'
,
'r-.'
,
'g-.'
,
'b-.'
,
'm-.'
,
'c-.'
,
'r:'
,
'g:'
,
'b:'
,
'm:'
,
'c:'
]
for
i
,
k
in
enumerate
(
variantTags
):
plt
.
grid
(
False
)
plt
.
plot
(
precision
[
k
],
lines
[
i
],
label
=
k
,
linewidth
=
(
15
-
i
)
*
2
)
plt
.
plot
(
precision
[
k
],
lines
[
i
],
label
=
k
,
linewidth
=
4
)
for
a
,
b
in
zip
(
range
(
8
),
precision
[
k
]):
plt
.
text
(
a
,
b
+
0.03
,
str
(
b
),
fontsize
=
10
)
plt
.
legend
(
loc
=
'lower right'
)
plt
.
tight_layout
()
plt
.
xticks
(
range
(
8
),[
'run1'
,
'run2'
,
'run3'
,
'run4'
,
'run5'
,
'run6'
,
'run7'
,
'run8'
])
...
...
CRF/figures/FiguresGrid_sep10_v11.png
deleted
100644 → 0
View file @
c922751
123 KB
CRF/figures/FiguresGrid_sep17_v11.png
0 → 100644
View file @
900a2ba
184 KB
CRF/
bin/FiguresGrid
_v12.png
→
CRF/
figures/FiguresGrid_sep17
_v12.png
View file @
900a2ba
187 KB
CRF/figures/FiguresGrid_sep17_variants_v11.png
0 → 100644
View file @
900a2ba
176 KB
CRF/
bin/FiguresGrid
_variants_v12.png
→
CRF/
figures/FiguresGrid_sep17
_variants_v12.png
View file @
900a2ba
177 KB
CRF/reports/sep1
0
/report_Run1_v11.txt
→
CRF/reports/sep1
7
/report_Run1_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run2_v11.txt
→
CRF/reports/sep1
7
/report_Run2_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run3_v11.txt
→
CRF/reports/sep1
7
/report_Run3_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run4_v11.txt
→
CRF/reports/sep1
7
/report_Run4_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run5_v11.txt
→
CRF/reports/sep1
7
/report_Run5_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run6_v11.txt
→
CRF/reports/sep1
7
/report_Run6_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run7_v11.txt
→
CRF/reports/sep1
7
/report_Run7_v11.txt
View file @
900a2ba
File moved
CRF/reports/sep1
0
/report_Run8_v11.txt
→
CRF/reports/sep1
7
/report_Run8_v11.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_1_v12.txt
→
CRF/reports/
sep17/
report_Run_1_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_1_v13.txt
→
CRF/reports/
sep17/
report_Run_1_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_2_v12.txt
→
CRF/reports/
sep17/
report_Run_2_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_2_v13.txt
→
CRF/reports/
sep17/
report_Run_2_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_3_v12.txt
→
CRF/reports/
sep17/
report_Run_3_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_3_v13.txt
→
CRF/reports/
sep17/
report_Run_3_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_4_v12.txt
→
CRF/reports/
sep17/
report_Run_4_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_4_v13.txt
→
CRF/reports/
sep17/
report_Run_4_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_5_v12.txt
→
CRF/reports/
sep17/
report_Run_5_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_5_v13.txt
→
CRF/reports/
sep17/
report_Run_5_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_6_v12.txt
→
CRF/reports/
sep17/
report_Run_6_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_6_v13.txt
→
CRF/reports/
sep17/
report_Run_6_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_7_v12.txt
→
CRF/reports/
sep17/
report_Run_7_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_7_v13.txt
→
CRF/reports/
sep17/
report_Run_7_v13.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_8_v12.txt
→
CRF/reports/
sep17/
report_Run_8_v12.txt
View file @
900a2ba
File moved
CRF/reports/report_Run_8_v13.txt
→
CRF/reports/
sep17/
report_Run_8_v13.txt
View file @
900a2ba
File moved
Please
register
or
login
to post a comment