Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.gmm
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.bio.gmm
Commits
4d230c6a
Commit
4d230c6a
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Plain Diff
Merge branch 'pipeline-rename' into 'master'
Fixes due to API changes in bob.bio.base See merge request
!33
parents
f3086b37
067f132f
Branches
master
No related tags found
1 merge request
!33
Fixes due to API changes in bob.bio.base
Pipeline
#59966
passed
3 years ago
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.pre-commit-config.yaml
+3
-3
3 additions, 3 deletions
.pre-commit-config.yaml
bob/bio/gmm/algorithm/GMM.py
+2
-3
2 additions, 3 deletions
bob/bio/gmm/algorithm/GMM.py
bob/bio/gmm/test/test_gmm.py
+1
-1
1 addition, 1 deletion
bob/bio/gmm/test/test_gmm.py
doc/conf.py
+5
-5
5 additions, 5 deletions
doc/conf.py
with
11 additions
and
12 deletions
.pre-commit-config.yaml
+
3
−
3
View file @
4d230c6a
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
# See https://pre-commit.com/hooks.html for more hooks
# See https://pre-commit.com/hooks.html for more hooks
repos
:
repos
:
-
repo
:
https://github.com/timothycrosley/isort
-
repo
:
https://github.com/timothycrosley/isort
rev
:
5.
9.3
rev
:
5.
10.1
hooks
:
hooks
:
-
id
:
isort
-
id
:
isort
args
:
[
--settings-path
,
"
pyproject.toml"
]
args
:
[
--settings-path
,
"
pyproject.toml"
]
-
repo
:
https://github.com/psf/black
-
repo
:
https://github.com/psf/black
rev
:
2
1.7b
0
rev
:
2
2.3.
0
hooks
:
hooks
:
-
id
:
black
-
id
:
black
-
repo
:
https://gitlab.com/pycqa/flake8
-
repo
:
https://gitlab.com/pycqa/flake8
...
@@ -15,7 +15,7 @@ repos:
...
@@ -15,7 +15,7 @@ repos:
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.
0.1
rev
:
v4.
1.0
hooks
:
hooks
:
-
id
:
check-ast
-
id
:
check-ast
-
id
:
check-case-conflict
-
id
:
check-case-conflict
...
...
This diff is collapsed.
Click to expand it.
bob/bio/gmm/algorithm/GMM.py
+
2
−
3
View file @
4d230c6a
...
@@ -21,7 +21,7 @@ import numpy as np
...
@@ -21,7 +21,7 @@ import numpy as np
from
h5py
import
File
as
HDF5File
from
h5py
import
File
as
HDF5File
from
sklearn.base
import
BaseEstimator
from
sklearn.base
import
BaseEstimator
from
bob.bio.base.pipelines
.vanilla_biometrics
import
BioAlgorithm
from
bob.bio.base.pipelines
import
BioAlgorithm
from
bob.learn.em
import
GMMMachine
,
GMMStats
,
KMeansMachine
,
linear_scoring
from
bob.learn.em
import
GMMMachine
,
GMMStats
,
KMeansMachine
,
linear_scoring
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -111,6 +111,7 @@ class GMM(BioAlgorithm, BaseEstimator):
...
@@ -111,6 +111,7 @@ class GMM(BioAlgorithm, BaseEstimator):
scoring_function
scoring_function
Function returning a score from a model, a UBM, and a probe.
Function returning a score from a model, a UBM, and a probe.
"""
"""
super
().
__init__
(
**
kwargs
)
# Copy parameters
# Copy parameters
self
.
number_of_gaussians
=
number_of_gaussians
self
.
number_of_gaussians
=
number_of_gaussians
...
@@ -140,8 +141,6 @@ class GMM(BioAlgorithm, BaseEstimator):
...
@@ -140,8 +141,6 @@ class GMM(BioAlgorithm, BaseEstimator):
self
.
ubm
=
None
self
.
ubm
=
None
super
().
__init__
(
**
kwargs
)
def
_check_feature
(
self
,
feature
):
def
_check_feature
(
self
,
feature
):
"""
Checks that the features are appropriate
"""
"""
Checks that the features are appropriate
"""
if
(
if
(
...
...
This diff is collapsed.
Click to expand it.
bob/bio/gmm/test/test_gmm.py
+
1
−
1
View file @
4d230c6a
...
@@ -44,7 +44,7 @@ def test_class():
...
@@ -44,7 +44,7 @@ def test_class():
assert
isinstance
(
gmm1
,
GMM
)
assert
isinstance
(
gmm1
,
GMM
)
assert
isinstance
(
assert
isinstance
(
gmm1
,
gmm1
,
bob
.
bio
.
base
.
pipelines
.
vanilla_biometrics
.
abstract_classes
.
BioAlgorithm
,
bob
.
bio
.
base
.
pipelines
.
BioAlgorithm
,
)
)
assert
gmm1
.
number_of_gaussians
==
512
assert
gmm1
.
number_of_gaussians
==
512
assert
"
bob_fit_supports_dask_array
"
in
gmm1
.
_get_tags
()
assert
"
bob_fit_supports_dask_array
"
in
gmm1
.
_get_tags
()
...
...
This diff is collapsed.
Click to expand it.
doc/conf.py
+
5
−
5
View file @
4d230c6a
...
@@ -77,9 +77,9 @@ source_suffix = ".rst"
...
@@ -77,9 +77,9 @@ source_suffix = ".rst"
master_doc
=
"
index
"
master_doc
=
"
index
"
# General information about the project.
# General information about the project.
project
=
u
"
bob.bio.gmm
"
project
=
"
bob.bio.gmm
"
copyright
=
u
"
%s, Idiap Research Institute
"
%
time
.
strftime
(
"
%Y
"
)
copyright
=
"
%s, Idiap Research Institute
"
%
time
.
strftime
(
"
%Y
"
)
# Grab the setup entry
# Grab the setup entry
distribution
=
pkg_resources
.
require
(
project
)[
0
]
distribution
=
pkg_resources
.
require
(
project
)[
0
]
...
@@ -129,8 +129,8 @@ pygments_style = "sphinx"
...
@@ -129,8 +129,8 @@ pygments_style = "sphinx"
# Some variables which are useful for generated material
# Some variables which are useful for generated material
project_variable
=
project
.
replace
(
"
.
"
,
"
_
"
)
project_variable
=
project
.
replace
(
"
.
"
,
"
_
"
)
short_description
=
u
"
Tools for running biometric recognition experiments using GMM-based approximation
"
short_description
=
"
Tools for running biometric recognition experiments using GMM-based approximation
"
owner
=
[
u
"
Idiap Research Institute
"
]
owner
=
[
"
Idiap Research Institute
"
]
# -- Options for HTML output ---------------------------------------------------
# -- Options for HTML output ---------------------------------------------------
...
@@ -210,7 +210,7 @@ html_favicon = "img/favicon.ico"
...
@@ -210,7 +210,7 @@ html_favicon = "img/favicon.ico"
# html_file_suffix = None
# html_file_suffix = None
# Output file base name for HTML help builder.
# Output file base name for HTML help builder.
htmlhelp_basename
=
project_variable
+
u
"
_doc
"
htmlhelp_basename
=
project_variable
+
"
_doc
"
# -- Post configuration --------------------------------------------------------
# -- Post configuration --------------------------------------------------------
...
...
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