A 'pure' implementation of the feature extraction process. This function is not normally called directly.
sensor_features( sensor_data, transform = NULL, extract = NULL, extract_on = NULL, models = NULL )
| sensor_data | A dataframe. |
|---|---|
| transform | A function or list of functions to be applied sequentially
to |
| extract | A function or list of functions to be applied to each of the
columns in |
| extract_on | A string or list of column names to compute features from.
If |
| models | A function or list of functions which accept the output from
|
A list of features. The output from extract will
be stored under $extracted_features and the output from models
will be stored under $model_features. If transform
returns an error dataframe (see has_error), the error dataframe is stored
under $error.
The feature extraction paradigm is implemented as such:
Input: raw sensor data Transform: into a format suitable for calculating statistics upon Extract: features by computing statistics upon individual columns within grouped rows -- or by using a model Return: A list of features