__init__.py 1.1 KB
Newer Older
1
from .Algorithm import Algorithm
2
from .SVM import SVM
3
from .OneClassGMM import OneClassGMM
Anjith GEORGE's avatar
GMM2  
Anjith GEORGE committed
4
from .OneClassGMM2 import OneClassGMM2
5
from .LogRegr import LogRegr
6
from .SVMCascadePCA import SVMCascadePCA
7
from .Predictions import Predictions, VideoPredictions
8

9
from .MLP import MLP
10
from .PadLDA import PadLDA
11 12

# to fix sphinx warnings of not able to find classes, when path is shortened
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
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,
34
    OneClassGMM,
35
    OneClassGMM2,
36
    LogRegr,
37
    SVMCascadePCA,
38
    Predictions,
39
    VideoPredictions,
40 41
    MLP,
    PadLDA
42
)
43 44

# gets sphinx autodoc done right - don't remove it
45
__all__ = [_ for _ in dir() if not _.startswith('_')]