Skip to content
GitLab
Menu
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
13f82056
Commit
13f82056
authored
May 26, 2016
by
Manuel Günther
Browse files
Fixed constness-issue (
#19
) in nose test
parent
3273ccd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/em/test/test_kmeans_trainer.py
View file @
13f82056
...
...
@@ -144,8 +144,9 @@ def test_kmeans_b():
bob
.
learn
.
em
.
train
(
trainer
,
machine
,
arStd
,
convergence_threshold
=
0.001
)
[
variances
,
weights
]
=
machine
.
get_variances_and_weights_for_each_cluster
(
arStd
)
means
=
machine
.
means
means
=
numpy
.
array
(
machine
.
means
)
variances
=
numpy
.
array
(
variances
)
multiplyVectorsByFactors
(
means
,
std
)
multiplyVectorsByFactors
(
variances
,
std
**
2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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