-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] generalize
AggrDist
and FlatDist
to allow arbitrary callabl…
…es, including `sklearn` kernel functions (#3956) This PR generalizes `AggrDist` and `FlatDist` to allow for arbitrary callables of suitable signature as distances/kernels inside. This allows easy definition of common time series distances such as mean Gaussian kernel, mean pairwise Euclidean distance, or index flattened Euclidean distance. This also adds: * a test parameter case, using an `sklearn` kernel * examples in the docstring to construct the distance/kernel either using an `sktime` distance or an `sklearn` kernel
- Loading branch information
Showing
1 changed file
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters