Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
lcg-faaa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2018-10-04 23:18:27 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec416a6f0e403d6b22e7047a842e64963009e5e2
ec416a6f
1 parent
d26b2c73
LSA soft clustering
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
agrupamiento-datos-categoricos/plot_Vectors_LSA_structured_heatmap.py
agrupamiento-datos-categoricos/plot_Vectors_LSA_structured_heatmap.py
View file @
ec416a6
...
...
@@ -95,9 +95,9 @@ if __name__ == "__main__":
#listSign.append(group[1])
#listLabels.append(label + group[1])
listLabels
.
append
(
label
)
print
(
"
Reading vectors done!"
)
print
(
"
Len vectors: "
+
str
(
len
(
listVectors
)))
print
(
"
Len labels: "
+
str
(
len
(
listLabels
)))
print
(
"Reading vectors done!"
)
print
(
" Len vectors: "
+
str
(
len
(
listVectors
)))
print
(
" Len labels: "
+
str
(
len
(
listLabels
)))
with
open
(
os
.
path
.
join
(
options
.
outputPath
,
options
.
vectorFile
.
replace
(
'.txt'
,
'.grps.txt'
)),
mode
=
'w'
,
encoding
=
'utf8'
)
as
oFile
:
for
g
,
l
in
sorted
(
zip
(
listGroup
,
listLabels
)):
...
...
@@ -114,4 +114,4 @@ if __name__ == "__main__":
labels
=
labels
+
l
+
', '
oFile
.
write
(
'{}
\t
{}
\n
'
.
format
(
g_before
,
labels
.
rstrip
(
', '
)))
print
(
"
Processing done in
%
fs"
%
(
time
()
-
t0
))
print
(
"Processing done in
%
fs"
%
(
time
()
-
t0
))
...
...
Please
register
or
login
to post a comment