Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
7a578d22
Commit
7a578d22
authored
Oct 23, 2017
by
Amir MOHAMMADI
Browse files
Make label and key list before repeating
parent
b18d79de
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/script/predict_bio.py
View file @
7a578d22
...
...
@@ -97,8 +97,8 @@ def bio_generator(database, preprocessor, groups, number_of_parallel_jobs,
for
f
,
label
,
key
in
six
.
moves
.
zip
(
biofiles
,
labels
,
keys
):
data
=
load_data
(
f
,
preprocessor
,
database
)
if
multiple_samples
:
label
=
tf_repeat
(
label
,
len
(
data
))
key
=
tf_repeat
(
key
,
len
(
data
))
label
=
tf_repeat
(
[
label
]
,
len
(
data
))
key
=
tf_repeat
(
[
key
]
,
len
(
data
))
yield
(
data
,
label
,
key
)
# load one data to get its type and shape
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment