Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
bob
bob.bio.base
Commits
c3a14afc
There was a problem fetching the pipeline summary.
Commit
c3a14afc
authored
8 years ago
by
Amir Mohammadi
Browse files
Options
Downloads
Patches
Plain Diff
t_model is the same as model (in size)
parent
90f3840f
No related branches found
No related tags found
1 merge request
!58
You can now specify a minimum file size for saved files
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/base/algorithm/Algorithm.py
+0
-5
0 additions, 5 deletions
bob/bio/base/algorithm/Algorithm.py
bob/bio/base/tools/algorithm.py
+1
-1
1 addition, 1 deletion
bob/bio/base/tools/algorithm.py
with
1 addition
and
6 deletions
bob/bio/base/algorithm/Algorithm.py
+
0
−
5
View file @
c3a14afc
...
...
@@ -65,10 +65,6 @@ class Algorithm:
The minimum file size of model_file in bytes. If the saved file is smaller
than this, it is assumed to be corrupt and it will be generated again.
min_t_model_file_size : int
The minimum file size of t_model_file in bytes. If the saved file is smaller
than this, it is assumed to be corrupt and it will be generated again.
kwargs : ``key=value`` pairs
A list of keyword arguments to be written in the `__str__` function.
...
...
@@ -102,7 +98,6 @@ class Algorithm:
self
.
min_projected_file_size
=
min_projected_file_size
self
.
min_enroller_file_size
=
min_enroller_file_size
self
.
min_model_file_size
=
min_model_file_size
self
.
min_t_model_file_size
=
min_t_model_file_size
self
.
_kwargs
=
kwargs
self
.
_kwargs
.
update
({
'
multiple_model_scoring
'
:
multiple_model_scoring
,
'
multiple_probe_scoring
'
:
multiple_probe_scoring
})
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/tools/algorithm.py
+
1
−
1
View file @
c3a14afc
...
...
@@ -310,7 +310,7 @@ def enroll(algorithm, extractor, compute_zt_norm, indices = None, groups = ['dev
# Removes old file if required
if
not
utils
.
check_file
(
t_model_file
,
force
,
algorithm
.
min_
t_
model_file_size
):
algorithm
.
min_model_file_size
):
t_enroll_files
=
fs
.
t_enroll_files
(
t_model_id
,
group
,
'
projected
'
if
algorithm
.
use_projected_features_for_enrollment
else
'
extracted
'
)
if
allow_missing_files
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment