Back to models
Transformer (Pairwise Panel)

IndepDist

Variable-wise aggregate of multivariate kernel or distance function.

Quickstart

python
from sktime.dists_kernels.indep import IndepDist

estimator = IndepDist(dist, aggfun=None)

Parameters(2)

distpairwise transformer of BasePairwiseTransformer scitype, or
callable np.ndarray (n_samples, nd) x (n_samples, nd) -> (n_samples x n_samples)
aggfunoptional, str or callable np.ndarray (m, nd, nd) -> (nd, nd)

aggregation function over the variables, \(g\) above “sum” = np.sum = default “mean” = np.mean “median” = np.median “max” = np.max “min” = np.min when starting with a function (m) -> scalar, use np.apply_along_axis to create a function (m, nd, nd) -> (nd, nd) and pass that as aggfun

Examples

>>> from sktime.dists_kernels.indep import IndepDist
>>> from sktime.dists_kernels.dtw import DtwDist
>>> 
>>> dist = IndepDist (DtwDist ())