Skip to main content

Classes

DSPApi


METHODS

clear_dsp_block

Clear DSP block Clear generated features for a DSP block (used in tests).

download_dsp_data

Download DSP data Download output from a DSP block over all data in the training set, already sliced in windows. In Numpy binary format.

download_dsp_labels

Download DSP labels Download labels for a DSP block over all data in the training set, already sliced in windows.

dsp_get_features_for_sample

Features for sample Runs the DSP block against a sample. This will move the sliding window (dependent on the sliding window length and the sliding window increase parameters in the impulse) over the complete file, and run the DSP function for every window that is extracted.

dsp_sample_trained_features

Sample of trained features Get a sample of trained features, this extracts a number of samples and their labels. Used to visualize the current training set.

get_autotuner_results

Get results from DSP autotuner Get a set of parameters, found as a result of running the DSP autotuner.

get_dsp_config

Get config Retrieve the configuration parameters for the DSP block. Use the impulse functions to retrieve all DSP blocks.

get_dsp_feature_importance

Feature importance Retrieve the feature importance for a DSP block (only available for blocks where dimensionalityReduction is not enabled)

get_dsp_feature_labels

Feature labels Retrieve the names of the features the DSP block generates

get_dsp_metadata

Get metadata Retrieve the metadata from a generated DSP block.

get_dsp_raw_sample

Get raw sample Get raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out. If you pass dspId = 0 this will return a raw graph without any processing.

get_dsp_sample_slice

Get raw sample (slice) Get slice of raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.

get_performance_all_variants

Get DSP block performance for all latency devices Get estimated performance (latency and RAM) for the DSP block, for all supported project latency devices.

run_dsp_on_features_array

Get processed sample (from features array) Takes in a features array and runs it through the DSP block. This data should have the same frequency as set in the input block in your impulse.

run_dsp_sample_slice

Get processed sample (slice) Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.

run_dsp_sample_slice_read_only

Get processed sample (slice) Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.

set_dsp_config

Set config Set configuration parameters for the DSP block. Only values set in the body will be overwritten.

start_profile_custom_dsp_block

Profile custom DSP block Returns performance characteristics for a custom DSP block (needs hasTfliteImplementation). Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.