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-08 17:53:49 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f82e89697bc17abc8b73653be232eed8cc3d540
9f82e896
1 parent
4670ad92
Deep Learning Workshop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
data-sets/get-hga-training-test-py27-v1.py
data-sets/get-hga-training-test-py27-v1.py
View file @
9f82e89
...
...
@@ -18,13 +18,14 @@
# LAVIS
# qlogin
# cd /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets
# python get-hga-training-test-py27-v1.py
# --inputFile hga-sequences-1000.txt
# --inputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation
# --outputTraining hga-sequences-training.txt
# --outputTest hga-sequences-test.txt
# --outputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation
# python get-hga-training-test-py27-v1.py --inputFile hga-sequences-
toy
.txt --inputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation --outputTraining hga-sequences-training.txt --outputTest hga-sequences-test.txt --outputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation
# python get-hga-training-test-py27-v1.py --inputFile hga-sequences-
1000
.txt --inputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation --outputTraining hga-sequences-training.txt --outputTest hga-sequences-test.txt --outputPath /mnt/Genoma/amedina/cmendez/gitlab-deep-learning-workshop/data-sets/human-genome-annotation
import
argparse
import
pandas
as
pd
...
...
@@ -148,7 +149,7 @@ if __name__ == "__main__":
input_shape
=
(
train_features
.
shape
[
1
],
5
)))
# Original: model.add(MaxPooling1D(pool_size=4))
# Do we have to change to 5, because of the 5 nucleotides?
model
.
add
(
MaxPooling1D
(
pool_size
=
4
))
model
.
add
(
MaxPooling1D
(
pool_size
=
5
))
model
.
add
(
Flatten
())
model
.
add
(
Dense
(
16
,
activation
=
'relu'
))
model
.
add
(
Dense
(
2
,
activation
=
'softmax'
))
...
...
Please
register
or
login
to post a comment