-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path__init__.py
36 lines (30 loc) · 924 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""Dim reduction."""
from __future__ import annotations
import importlib
from typing import TYPE_CHECKING, Any
import lazy_loader as lazy
_normal_getattr, __dir__, __all__ = lazy.attach(
__name__,
submodules=[
"variable_selection",
],
submod_attrs={
"_fdm": ["DiffusionMap"],
"_fpca": ["FPCA"],
"_fpls": ["FPLS"],
"_neighbor_transforms": ["KNeighborsTransformer"],
"_pace": ["PACE"],
},
)
if TYPE_CHECKING:
from ._fdm import DiffusionMap as DiffusionMap
from ._fpca import FPCA as FPCA
from ._fpls import FPLS as FPLS
from ._neighbor_transforms import (
KNeighborsTransformer as KNeighborsTransformer,
)
from ._pace import PACE as PACE
def __getattr__(name: str) -> Any:
if name in {"projection", "feature_extraction"}:
return importlib.import_module(f".{name}", __name__)
return _normal_getattr(name)