Transformer (Pairwise Panel)
FlatDist
Panel distance or kernel from applying tabular trafo to flattened time series.
Quickstart
python
from sktime.dists_kernels.compose_tab_to_panel import FlatDist
estimator = FlatDist(transformer)Parameters(1)
- transformer: pairwise transformer of BasePairwiseTransformer scitype, or
- callable np.ndarray (n_samples, d) x (n_samples, d) -> (n_samples x n_samples)
Examples
Euclidean distance between time series of equal length, considered as vectors
>>> from sktime.dists_kernels import FlatDist, ScipyDist
>>> euc_tsdist = FlatDist (ScipyDist ()) Gaussian kernel between time series of equal length, considered as vectors
>>> from sklearn.gaussian_process.kernels import RBF
>>> flat_gaussian_tskernel = FlatDist (RBF ())