sit2standpy.v2.Sequential

class sit2standpy.v2.pipeline.Sequential

Sequential model for procssing a pipeline for IMU analysis

Parameters:
sampling_frequency : float

Sampling frequency of the IMU data provided to the model

Methods

add(process) Add a processing step to the pipeline.
predict(data) Predict/run the processing pipeline on the input data
add(process)

Add a processing step to the pipeline.

Parameters:
process : class

A instantiated process class, that has a predict method that takes in data as a dictionary or path to a HDF file(see predict)

predict(data)

Predict/run the processing pipeline on the input data

Parameters:
data : {str, dict}

Either a H5 file path (string), or a dictionary. Both the H5 format and the dictionary must follow the below format. The h5 file or dictionary will be modified in-place.

Notes

The layout for the input H5 file or the dictionary must be as follows:

  • Sensors
    • Lumbar
      • Accelerometer
      • Unix Time [units=seconds]