Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.em
Commits
942aca46
Commit
942aca46
authored
May 30, 2017
by
Amir MOHAMMADI
Browse files
remove extra whitespace
parent
2d38784a
Pipeline
#9753
passed with stages
in 15 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/em/train.py
View file @
942aca46
...
...
@@ -15,7 +15,7 @@ def train(trainer, machine, data, max_iterations=50, convergence_threshold=None,
check_inputs
=
True
):
"""
Trains a machine given a trainer and the proper data
**Parameters**:
trainer : one of :py:class:`KMeansTrainer`, :py:class:`MAP_GMMTrainer`, :py:class:`ML_GMMTrainer`, :py:class:`ISVTrainer`, :py:class:`IVectorTrainer`, :py:class:`PLDATrainer`, :py:class:`EMPCATrainer`
A trainer mechanism
...
...
@@ -31,8 +31,8 @@ def train(trainer, machine, data, max_iterations=50, convergence_threshold=None,
If True, runs the initialization procedure
rng : :py:class:`bob.core.random.mt19937`
The Mersenne Twister mt19937 random generator used for the initialization of subspaces/arrays before the EM loop
check_inputs:
Shallow checks in the inputs. Check for inf and NaN
check_inputs:
Shallow checks in the inputs. Check for inf and NaN
"""
if
check_inputs
and
type
(
data
)
is
numpy
.
ndarray
:
...
...
@@ -84,7 +84,7 @@ def train(trainer, machine, data, max_iterations=50, convergence_threshold=None,
def
train_jfa
(
trainer
,
jfa_base
,
data
,
max_iterations
=
10
,
initialize
=
True
,
rng
=
None
):
"""
Trains a :py:class:`bob.learn.em.JFABase` given a :py:class:`bob.learn.em.JFATrainer` and the proper data
**Parameters**:
trainer : :py:class:`bob.learn.em.JFATrainer`
A JFA trainer mechanism
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment