ContractedShapeletTransform

class sktime.transformations.panel.shapelets.ContractedShapeletTransform(min_shapelet_length=3, max_shapelet_length=inf, max_shapelets_to_store_per_class=200, time_contract_in_mins=60, num_candidates_to_sample_per_case=20, random_state=None, verbose=0, remove_self_similar=True)[source]

Contracted Shapelet Transform. @incollection{bostrom2017binary,

title={Binary shapelet transform for multiclass time series classification}, author={Bostrom, Aaron and Bagnall, Anthony}, booktitle={Transactions on Large-Scale Data-and Knowledge-Centered Systems XXXII}, pages={24–46}, year={2017}, publisher={Springer}

}

Parameters
  • min_shapelet_length (int, lower bound on candidate) –

  • lengths (default = 3) (shapelet) –

  • max_shapelet_length (int, upper bound on candidate) –

  • lengths (default = inf or series length) (shapelet) –

  • max_shapelets_to_store_per_class (int, upper bound on number of) –

  • to retain from each distinct class (default = 200) (shapelets) –

  • time_contract_in_mins (float, the number of minutes) –

  • for shapelet extraction (default = 60) (allowed) –

  • num_candidates_to_sample_per_case (int, number of candidate shapelets) –

  • assess per training series before moving on to (to) – the next series (default = 20)

  • random_state (RandomState, int, or none: to) –

  • random state objects for deterministic results (default = None) (control) –

  • verbose (int, level of output printed to) –

  • console (for information only) (default = 0) (the) –

  • remove_self_similar (boolean, remove overlapping) –

  • shapelets from the final transform (default = True) ("self-similar") –

predefined_ig_rejection_level[source]
Type

float, minimum information gain

required to keep a shapelet (default = 0.05)
self.shapelets[source]
Type

list of Shapelet objects,

the stored shapelets after a dataset has been processed
__init__(min_shapelet_length=3, max_shapelet_length=inf, max_shapelets_to_store_per_class=200, time_contract_in_mins=60, num_candidates_to_sample_per_case=20, random_state=None, verbose=0, remove_self_similar=True)[source]

Initialize self. See help(type(self)) for accurate signature.