Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.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.pad.base
Commits
47666724
There was a problem fetching the pipeline summary.
Commit
47666724
authored
8 years ago
by
Pavel KORSHUNOV
Browse files
Options
Downloads
Patches
Plain Diff
Clean up some code
parent
749c6799
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
moved pad DB interface here, tests are passing
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
MANIFEST.in
+1
-0
1 addition, 0 deletions
MANIFEST.in
bob/pad/base/tools/preprocessor.py
+0
-2
0 additions, 2 deletions
bob/pad/base/tools/preprocessor.py
bob/pad/base/tools/scoring.py
+0
-3
0 additions, 3 deletions
bob/pad/base/tools/scoring.py
with
1 addition
and
5 deletions
MANIFEST.in
+
1
−
0
View file @
47666724
...
...
@@ -2,3 +2,4 @@ include README.rst bootstrap-buildout.py buildout.cfg develop.cfg version.txt re
recursive-include doc *.py *.rst
recursive-include bob *.txt *.hdf5
recursive-include bob *.sql3
recursive-include bob/pad/base/test/data scores-* *.sql3
This diff is collapsed.
Click to expand it.
bob/pad/base/tools/preprocessor.py
+
0
−
2
View file @
47666724
...
...
@@ -57,8 +57,6 @@ def preprocess(preprocessor, groups=None, indices=None, force=False):
# get the file lists
data_files
,
original_directory
,
original_extension
=
fs
.
original_data_list_files
(
groups
=
groups
)
preprocessed_data_files
=
fs
.
preprocessed_data_list
(
groups
=
groups
)
print
(
"
len of data files: %s
"
%
(
str
(
len
(
data_files
))))
print
(
"
len of preprocessed data files (paths): %s
"
%
(
str
(
len
(
preprocessed_data_files
))))
# select a subset of keys to iterate
if
indices
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
bob/pad/base/tools/scoring.py
+
0
−
3
View file @
47666724
...
...
@@ -112,14 +112,11 @@ def _save_scores(score_file, scores, toscore_objects, write_compressed=False):
for
i
,
toscore_object
in
enumerate
(
toscore_objects
):
id_str
=
(
str
(
toscore_object
.
client_id
)).
zfill
(
3
)
sample_name
=
str
(
toscore_object
.
make_path
())
print
(
"
i=%d, scores=%s
"
%
(
i
,
str
(
scores
)))
for
score
in
scores
[
i
]:
if
not
toscore_object
.
attack_type
or
toscore_object
.
attack_type
==
"
None
"
:
print
(
"
- Scoring: %s, id: %s, real
"
%
(
sample_name
,
id_str
))
_write
(
f
,
"
%s %s %s %.12f
\n
"
%
(
id_str
,
id_str
,
sample_name
,
score
),
write_compressed
)
else
:
attackname
=
toscore_object
.
attack_type
print
(
"
- Scoring: %s, id: %s, attack: %s
"
%
(
sample_name
,
id_str
,
attackname
))
_write
(
f
,
"
%s %s %s %.12f
\n
"
%
(
id_str
,
attackname
,
sample_name
,
score
),
write_compressed
)
_close_written
(
score_file
,
f
,
write_compressed
)
...
...
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