rfwtools.extractor.down_sample
This module provides down sampling-based feature extraction tools.
Typically, these will be used by DataSet.produce_feature_set(). However there is no reason why these can’t be run externally.
Basic Usage Example:
from rfwtools.data_set import DataSet
from rfwtools.extractor.downsample import down_sample_extractor
# Setup a DataSet object and get some example data to work with
ds = DataSet()
ds.load_example_set_csv("my_example_set.csv")
# Get a single example to work on
ex = ds.example_set.loc[0, 'example']
# Run on one example with defaults
down_sample_extractor(ex)
# Run on one example with only 2 signals being processed
down_sample_extractor(ex, signals=['1_GMES', '1_PMES'])
# Run on one example, but only include values before the fault on set.
down_sample_extractor(ex, query="Time < 0")
# Run this on every example in the example set and produce a corresponding feature set for pre-fault signal data.
ds.produce_feature_set(down_sample_extractor, query="Time < 0")
Functions
|
Standardize and down sample several signals and concatenate into a single row. |
|
Extract features via lttb on individual signals from a set. |