Skip to content
Snippets Groups Projects
Commit 7b349d91 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

moved SVM algorithm from bob.pad.face

parent 69a14c63
No related branches found
No related tags found
1 merge request!28Harmonizing algorithms from bob.pad.face and bob.pad.voice, fixes issue#16
Pipeline #
from .utils import *
from . import database from . import database
from . import algorithm from . import algorithm
from . import tools from . import tools
......
from .Algorithm import Algorithm from .Algorithm import Algorithm
from .SVM import SVM
# to fix sphinx warnings of not able to find classes, when path is shortened
Algorithm.__module__ = "bob.pad.base.algorithm" def __appropriate__(*args):
# gets sphinx autodoc done right - don't remove it """Says object was actually declared here, and not in the import module.
Fixing sphinx warnings of not being able to find classes, when path is
shortened.
Parameters
----------
*args
The objects that you want sphinx to believe that are defined here.
Resolves `Sphinx referencing issues <https//github.com/sphinx-
doc/sphinx/issues/3048>`
"""
for obj in args:
obj.__module__ = __name__
__appropriate__(
Algorithm,
SVM,
)
__all__ = [_ for _ in dir() if not _.startswith('_')] __all__ = [_ for _ in dir() if not _.startswith('_')]
from .PadIsoMetrics import PadIsoMetrics from .PadIsoMetrics import PadIsoMetrics
# to fix sphinx warnings of not able to find classes, when path is shortened
PadIsoMetrics.__module__ = "bob.pad.base.evaluation"
# gets sphinx autodoc done right - don't remove it
__all__ = [_ for _ in dir() if not _.startswith('_')]
def __appropriate__(*args):
"""Says object was actually declared here, and not in the import module.
Fixing sphinx warnings of not being able to find classes, when path is
shortened.
Parameters
----------
*args
The objects that you want sphinx to believe that are defined here.
Resolves `Sphinx referencing issues <https//github.com/sphinx-
doc/sphinx/issues/3048>`
"""
for obj in args:
obj.__module__ = __name__
__appropriate__(
PadIsoMetrics,
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
...@@ -27,6 +27,8 @@ requirements: ...@@ -27,6 +27,8 @@ requirements:
- bob.db.base - bob.db.base
- bob.io.base - bob.io.base
- bob.bio.base - bob.bio.base
- bob.bio.video
- bob.learn.libsvm
run: run:
- python - python
- setuptools - setuptools
......
...@@ -2,4 +2,6 @@ setuptools ...@@ -2,4 +2,6 @@ setuptools
bob.extension bob.extension
bob.db.base bob.db.base
bob.io.base bob.io.base
bob.bio.base bob.bio.base
\ No newline at end of file bob.bio.video
bob.learn.libsvm
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment