Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Geodesic Flow Kernel Method #127

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions skada/_subspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,33 @@
),
base_estimator,
)


class GeodesicFlowKernelAdapter(BaseAdapter):
"""
Geodesic Flow Kernel
"""
def __init__(self):
super().__init__()

def adapt(self, X, y=None, sample_domain=None, **kwargs):
pass

def fit(self, X, y=None, sample_domain=None, **kwargs):
pass


class GeodesicFlowKernel(
base_estimator=None,
):
"""
Geodesic Flow Kernel
"""
if base_estimator is None:

Check failure on line 405 in skada/_subspace.py

View workflow job for this annotation

GitHub Actions / Flake8-Codestyle-Check

undefined name 'base_estimator'
base_estimator = SVC()

Check warning on line 407 in skada/_subspace.py

View workflow job for this annotation

GitHub Actions / Flake8-Codestyle-Check

blank line contains whitespace
return make_da_pipeline(

Check failure on line 408 in skada/_subspace.py

View workflow job for this annotation

GitHub Actions / Flake8-Codestyle-Check

'return' outside function
GeodesicFlowKernelAdapter(
),
base_estimator,
)

Check warning on line 412 in skada/_subspace.py

View workflow job for this annotation

GitHub Actions / Flake8-Codestyle-Check

no newline at end of file
Loading