Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
deep-learning-workshop
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
2019-05-09 16:18:28 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34e7679abf39813a9fcdfbe563803d37fcf2a457
34e7679a
1 parent
2fa3224f
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
data-sets/get-hga-training-test-py27-v1.py
data-sets/get-hga-training-test-py27-v1.py
View file @
34e7679
...
...
@@ -104,7 +104,7 @@ if __name__ == "__main__":
print
(
"Media exon length: {}"
.
format
(
total_exon_length
/
count_exon
))
print
(
"Media utr length: {}"
.
format
(
total_utr_length
/
count_utr
))
#
quit()
quit
()
if
max_exon_length
>
max_utr_length
:
max_length
=
max_exon_length
...
...
@@ -130,7 +130,7 @@ if __name__ == "__main__":
integer_encoded
=
np
.
array
(
integer_encoded
)
.
reshape
(
-
1
,
1
)
# print("integer_encoded: {}".format(integer_encoded))
one_hot_encoded
=
one_hot_encoder
.
fit_transform
(
integer_encoded
)
print
(
" shape: {}"
.
format
(
one_hot_encoded
.
toarray
()
.
shape
))
#
print(" shape: {}".format(one_hot_encoded.toarray().shape))
input_features
.
append
(
one_hot_encoded
.
toarray
())
# Print first sequence and one-hot-encoding
...
...
Please
register
or
login
to post a comment