Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.tensorflow
Merge requests
!36
Use bob.extension to load config files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use bob.extension to load config files
predict
into
master
Overview
1
Commits
3
Pipelines
1
Changes
8
Merged
Amir MOHAMMADI
requested to merge
predict
into
master
7 years ago
Overview
1
Commits
3
Pipelines
1
Changes
8
Expand
improve super call and logging in biogenerator
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f2cc091a
3 commits,
7 years ago
8 files
+
17
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
bob/learn/tensorflow/dataset/bio.py
+
5
−
1
Options
@@ -41,7 +41,8 @@ class BioGenerator(object):
"""
def
__init__
(
self
,
database
,
biofiles
,
load_data
=
None
,
biofile_to_label
=
None
,
multiple_samples
=
False
):
biofile_to_label
=
None
,
multiple_samples
=
False
,
**
kwargs
):
super
(
BioGenerator
,
self
).
__init__
(
**
kwargs
)
if
load_data
is
None
:
def
load_data
(
database
,
biofile
):
data
=
read_original_data
(
@@ -95,6 +96,9 @@ class BioGenerator(object):
def
output_shapes
(
self
):
return
self
.
_output_shapes
def
__len__
(
self
):
return
len
(
self
.
biofiles
)
def
__call__
(
self
):
"""
A generator function that when called will return the samples.
Loading