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
0d6da9b9
There was a problem fetching the pipeline summary.
Commit
0d6da9b9
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[algorithm] fixed LDA unit test
parent
c720a2cb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!50
Add new classification algorithms
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/pad/base/algorithm/PadLDA.py
+2
-2
2 additions, 2 deletions
bob/pad/base/algorithm/PadLDA.py
bob/pad/base/test/test_algorithms.py
+2
-5
2 additions, 5 deletions
bob/pad/base/test/test_algorithms.py
with
4 additions
and
7 deletions
bob/pad/base/algorithm/PadLDA.py
+
2
−
2
View file @
0d6da9b9
...
...
@@ -8,8 +8,8 @@ class PadLDA(LDA):
"""
Wrapper for bob.bio.base.algorithm.LDA,
Here, LDA is used in a PAD context. This means that the feature
will be projected on a
two-
dimension
al
subspace, wh
ere the two
dimensions represents the real and attack classes.
will be projected on a
single
dimension subspace, wh
ich acts as a score
For more details, you may want to have a look at
`bob.learn.linear Documentation`_
...
...
This diff is collapsed.
Click to expand it.
bob/pad/base/test/test_algorithms.py
+
2
−
5
View file @
0d6da9b9
...
...
@@ -13,6 +13,7 @@ import bob.pad.base
from
bob.pad.base.algorithm
import
SVM
from
bob.pad.base.algorithm
import
OneClassGMM
from
bob.pad.base.algorithm
import
MLP
from
bob.pad.base.algorithm
import
PadLDA
import
random
...
...
@@ -231,8 +232,4 @@ def test_LDA():
lda
=
PadLDA
()
lda
.
train_projector
(
training_features
,
'
/tmp/lda.hdf5
'
)
real_sample
=
real_array
[
0
]
prob
=
lda
.
project
(
real_sample
)
assert
prob
[
0
]
>
prob
[
1
]
assert
lda
.
machine
.
shape
==
(
2
,
1
)
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