Skip to content

Commit

Permalink
Expose ABCs for registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Mar 29, 2023
1 parent 73e7708 commit 546f360
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions skfda/preprocessing/registration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"validation",
],
submod_attrs={
"_base": [
"RegistrationTransformer",
"InductiveRegistrationTransformer",
],
"_fisher_rao": ["ElasticRegistration", "FisherRaoElasticRegistration"],
"_landmark_registration": [
"landmark_elastic_registration",
Expand All @@ -35,6 +39,10 @@
)

if TYPE_CHECKING:
from ._base import (
InductiveRegistrationTransformer as InductiveRegistrationTransformer,
RegistrationTransformer as RegistrationTransformer,
)
from ._fisher_rao import (
ElasticRegistration as ElasticRegistration,
FisherRaoElasticRegistration as FisherRaoElasticRegistration,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion skfda/preprocessing/registration/_fisher_rao.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ...representation.basis import Basis
from ...representation.interpolation import SplineInterpolation
from ...typing._numpy import ArrayLike
from .base import InductiveRegistrationTransformer
from ._base import InductiveRegistrationTransformer

_MeanType = Callable[[FDataGrid], FDataGrid]
SelfType = TypeVar("SelfType", bound="FisherRaoElasticRegistration")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ...representation.extrapolation import ExtrapolationLike
from ...typing._base import GridPointsLike
from ...typing._numpy import ArrayLike, NDArrayFloat
from .base import InductiveRegistrationTransformer
from ._base import InductiveRegistrationTransformer

SelfType = TypeVar("SelfType", bound="LeastSquaresShiftRegistration[FData]")
T = TypeVar("T", bound=FData)
Expand Down
2 changes: 1 addition & 1 deletion skfda/preprocessing/registration/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ...misc.validation import check_fdata_dimensions
from ...representation import FData
from ...typing._numpy import NDArrayFloat
from .base import RegistrationTransformer
from ._base import RegistrationTransformer

Input = TypeVar("Input", bound=FData)
Output = TypeVar("Output", bound=FData)
Expand Down

0 comments on commit 546f360

Please sign in to comment.