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-16 11:14:07 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
16c432d7088feacf2a048bf2dde7ceda4d94d6a3
16c432d7
1 parent
959959c2
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
data-sets/get-hga-training-test-py27-v3.py
data-sets/human-genome-annotation/hga-sequences-10000.txt
data-sets/get-hga-training-test-py27-v3.py
View file @
16c432d
...
...
@@ -195,9 +195,10 @@ if __name__ == "__main__":
history
=
model
.
fit
(
train_features
,
train_labels
,
epochs
=
50
,
verbose
=
0
,
validation_split
=
0.25
)
# Print model metrics
print
(
"Model metics:"
)
print
(
"
\n\t
%
s:"
%
(
model
.
metrics_names
[
1
]))
# Print training metrics
print
(
"Training metrics:"
)
model
.
evaluate
(
train_features
,
train_labels
)
print
(
"
\n
%
s:"
%
(
model
.
metrics_names
[
1
]))
# Plot training-validation loss
plt
.
figure
()
...
...
@@ -223,6 +224,12 @@ if __name__ == "__main__":
# Predict with rest data set
predicted_labels
=
model
.
predict
(
np
.
stack
(
test_features
))
# Print test metrics
print
(
"Test metrics:"
)
model
.
evaluate
(
train_features
,
train_labels
)
print
(
"
\n
%
s:"
%
(
model
.
metrics_names
[
1
]))
# Print confusion matrix
cm
=
confusion_matrix
(
np
.
argmax
(
test_labels
,
axis
=
1
),
np
.
argmax
(
predicted_labels
,
axis
=
1
))
...
...
data-sets/human-genome-annotation/hga-sequences-10000.txt
0 → 100644
View file @
16c432d
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment