dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.download_dsp_data( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description='Which of the three acquisition categories to download data from', extra={})], raw: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description='Whether to download raw data or processed data. Processed data is the default.', extra={})] = None, **kwargs) ‑> str
Download DSP dataDownload output from a DSP block over all data in the training set, already sliced in windows. In Numpy binary format.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description=‘Which of the three acquisition categories to download data from’, extra=)]
raw: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description=‘Whether to download raw data or processed data. Processed data is the default.’, extra=)] = None
edgeimpulse_api.api.dsp_api.download_dsp_labels( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description='Which of the three acquisition categories to download data from', extra={})], **kwargs) ‑> str
Download DSP labelsDownload labels for a DSP block over all data in the training set, already sliced in windows.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description=‘Which of the three acquisition categories to download data from’, extra=)]
edgeimpulse_api.api.dsp_api.dsp_get_features_for_sample( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], sample_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Sample ID', extra={})], **kwargs) ‑> edgeimpulse_api.models.dsp_sample_features_response.DspSampleFeaturesResponse
Features for sampleRuns 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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.dsp_sample_trained_features( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], feature_ax1: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Feature axis 1', extra={})], feature_ax2: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Feature axis 2', extra={})], feature_ax3: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Feature axis 3', extra={})], category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description='Which of the three acquisition categories to download data from', extra={})], **kwargs) ‑> edgeimpulse_api.models.dsp_trained_features_response.DspTrainedFeaturesResponse
Sample of trained featuresGet a sample of trained features, this extracts a number of samples and their labels. Used to visualize the current training set.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
category: Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(default=Ellipsis, description=‘Which of the three acquisition categories to download data from’, extra=)]
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.get_dsp_metadata( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], exclude_included_samples: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description="Whether to exclude 'includedSamples' in the response (as these can slow down requests significantly).", extra={})] = None, category: Annotated[pydantic.types.StrictStr | None, FieldInfo(default=PydanticUndefined, description='Which of the acquisition categories to get metadata from', extra={})] = None, **kwargs) ‑> edgeimpulse_api.models.dsp_metadata_response.DSPMetadataResponse
Get metadataRetrieve the metadata from a generated DSP block.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
exclude_included_samples: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description=“Whether to exclude ‘includedSamples’ in the response (as these can slow down requests significantly).”, extra=)] = None
category: Annotated[pydantic.types.StrictStr | None, FieldInfo(default=PydanticUndefined, description=‘Which of the acquisition categories to get metadata from’, extra=)] = None
edgeimpulse_api.api.dsp_api.get_dsp_raw_sample( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], sample_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Sample ID', extra={})], limit_payload_values: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='Limit the number of payload values in the response', extra={})] = None, truncate_structured_labels: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description='If true, only a slice of labels will be returned for samples with multiple labels.', extra={})] = None, **kwargs) ‑> edgeimpulse_api.models.get_sample_response.GetSampleResponse
Get raw sampleGet 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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
limit_payload_values: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Limit the number of payload values in the response’, extra=)] = None
truncate_structured_labels: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description=‘If true, only a slice of labels will be returned for samples with multiple labels.’, extra=)] = None
edgeimpulse_api.api.dsp_api.get_dsp_sample_slice( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], sample_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Sample ID', extra={})], slice_start: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Begin index of the slice', extra={})], slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.', extra={})] = None, truncate_structured_labels: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description='If true, only a slice of labels will be returned for samples with multiple labels.', extra={})] = None, **kwargs) ‑> edgeimpulse_api.models.get_sample_response.GetSampleResponse
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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
slice_start: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Begin index of the slice’, extra=)]
slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.’, extra=)] = None
truncate_structured_labels: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description=‘If true, only a slice of labels will be returned for samples with multiple labels.’, extra=)] = None
edgeimpulse_api.api.dsp_api.get_performance_all_variants( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], **kwargs) ‑> edgeimpulse_api.models.dsp_performance_all_variants_response.DspPerformanceAllVariantsResponse
Get DSP block performance for all latency devicesGet estimated performance (latency and RAM) for the DSP block, for all supported project latency devices.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.run_dsp_on_features_array( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], dsp_run_request_with_features: edgeimpulse_api.models.dsp_run_request_with_features.DspRunRequestWithFeatures, **kwargs) ‑> edgeimpulse_api.models.dsp_run_response.DspRunResponse
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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.run_dsp_sample_slice( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], sample_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Sample ID', extra={})], slice_start: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Begin index of the slice', extra={})], dsp_run_request_without_features: edgeimpulse_api.models.dsp_run_request_without_features.DspRunRequestWithoutFeatures, slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.', extra={})] = None, **kwargs) ‑> edgeimpulse_api.models.dsp_run_response_with_sample.DspRunResponseWithSample
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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.’, extra=)] = None
edgeimpulse_api.api.dsp_api.run_dsp_sample_slice_read_only( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], sample_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Sample ID', extra={})], slice_start: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Begin index of the slice', extra={})], slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description='End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.', extra={})] = None, **kwargs) ‑> edgeimpulse_api.models.dsp_run_response_with_sample.DspRunResponseWithSample
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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
slice_start: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Begin index of the slice’, extra=)]
slice_end: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘End index of the slice. If not given, the sample will be sliced to the same length as the impulse input block window length.’, extra=)] = None
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]
edgeimpulse_api.api.dsp_api.start_profile_custom_dsp_block( self, project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})], dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='DSP Block ID, use the impulse functions to retrieve the ID', extra={})], dsp_run_request_without_features_read_only: edgeimpulse_api.models.dsp_run_request_without_features_read_only.DspRunRequestWithoutFeaturesReadOnly, **kwargs) ‑> edgeimpulse_api.models.start_job_response.StartJobResponse
Profile custom DSP blockReturns 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.Parameters
dsp_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘DSP Block ID, use the impulse functions to retrieve the ID’, extra=)]