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

add option to pass in pre-computed signatures #6

Merged
merged 8 commits into from
Oct 17, 2023
13 changes: 13 additions & 0 deletions src/signature_mahalanobis_knn/sig_mahal_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ def fit(
SignatureTransformer,
)

# set default kwargs for signature transformer if not provided
rchan26 marked this conversation as resolved.
Show resolved Hide resolved
if kwargs == {}:
kwargs = {
"augmentation_list": ("addtime",),
"window_name": "global",
"window_depth": None,
"window_length": None,
"window_step": None,
"rescaling": None,
"sig_tfm": "signature",
"depth": 2,
}

self.signature_transform = SignatureTransformer(
**kwargs,
)
Expand Down