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-04-29 13:30:10 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b6d7426d9174fb620d83590b21ffe12236913ae8
b6d7426d
1 parent
e807309b
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
data-sets/get-hga-training-test.py
data-sets/get-hga-training-test.py
View file @
b6d7426
...
...
@@ -65,6 +65,7 @@ if __name__ == "__main__":
integer_encoded
=
integer_encoder
.
fit_transform
(
list
(
sequence
))
integer_encoded
=
np
.
array
(
integer_encoded
)
.
reshape
(
-
1
,
1
)
one_hot_encoded
=
one_hot_encoder
.
fit_transform
(
integer_encoded
)
input_features
.
append
(
one_hot_encoded
.
toarray
())
# Print first sequence and one-hot-encoding
np
.
set_printoptions
(
threshold
=
40
)
...
...
Please
register
or
login
to post a comment