Commit 7b349d91 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV

moved SVM algorithm from bob.pad.face

parent 69a14c63
Pipeline #16586 failed with stage
in 16 minutes and 43 seconds
from .utils import *
from . import database
from . import algorithm
from . import tools
......
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"
# gets sphinx autodoc done right - don't remove it
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__(
Algorithm,
SVM,
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
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:
- bob.db.base
- bob.io.base
- bob.bio.base
- bob.bio.video
- bob.learn.libsvm
run:
- python
- setuptools
......
......@@ -2,4 +2,6 @@ setuptools
bob.extension
bob.db.base
bob.io.base
bob.bio.base
\ No newline at end of file
bob.bio.base
bob.bio.video
bob.learn.libsvm
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment