rfwtools.extractor.tsf.tsfresh_extractor_faulted_cavity
- rfwtools.extractor.tsf.tsfresh_extractor_faulted_cavity(example, waveforms=None, query=None, impute_function=<function impute>, disable_progress_bar=True, n_jobs=0, default_fc_parameters=None, **kwargs)[source]
Use tsfresh to extract features for only the cavity that faulted. Returns None if cavity_label==’0’.
This is a thin wrapper over tsfresh.feature_extraction.extraction.extract_features. See that method for more details.
- Parameters:
example (
Example) – The Example for which features are extractedwaveforms (
Optional[List[str]]) – A list of waveform names to extract features from. Default is [‘GMES’, ‘GASK’, ‘CRFP’, ‘DETA2’].query (
Optional[str]) – Argument passed to the ex.event_df to filter data prior to feature extraction, e.g. “Time <= 0”.impute_function (
Optional[callable]) – The function used to impute missing values about the datadisable_progress_bar (
bool) – Should the progress bar be displayed?n_jobs (
int) – The number of jobs should be run concurrently. Defaults to zero, which disables parallelization.default_fc_parameters (
Optional[dict]) – mapping of feature calculator names to parameters. If None, defaults to EfficientFCParameters(). See tsfresh.feature_extraction.extraction.extract_features for more details.**kwargs – All other key word arguments are passed directly to tsfresh.extract_features
- Return type:
Optional[DataFrame]- Returns:
A DataFrame of the calculated features or None if cavity_label==’0’.