wildboar.transform._shapelet#
Module Contents#
Classes#
Transform a time series to the distances to a selection of random shapelets. |
- class wildboar.transform._shapelet.RandomShapeletTransform(n_shapelets=1000, *, metric='euclidean', metric_params=None, min_shapelet_size=0, max_shapelet_size=1.0, n_jobs=None, random_state=None)[source]#
Bases:
wildboar.transform.base.BaseFeatureEngineerTransformTransform a time series to the distances to a selection of random shapelets.
References
- Wistuba, Martin, Josif Grabocka, and Lars Schmidt-Thieme.
Ultra-fast shapelets for time series classification. arXiv preprint arXiv:1503.05018 (2015).
- Parameters:
n_shapelets (int, optional) – The number of shapelets in the resulting transform
metric (str, optional) –
Distance metric used to identify the best shapelet.
See
distance._SUBSEQUENCE_DISTANCE_MEASURE.keys()for a list of supported metrics.metric_params (dict, optional) –
Parameters for the distance measure.
Read more about the parameters in the User guide.
min_shapelet_size (float, optional) – Minimum shapelet size.
max_shapelet_size (float, optional) – Maximum shapelet size.
n_jobs (int, optional) – The number of jobs to run in parallel. None means 1 and -1 means using all processors.
random_state (int or RandomState, optional) – The psudo-random number generator.