Classes
DSPApi
Parameters | |
---|---|
api_client=None | |
METHODS
clear_dsp_block
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.generic_api_response.GenericApiResponse |
download_dsp_data
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
category | Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(annotation=NoneType, required=True, description='Which of the three acquisition categories to download data from')] |
raw | Annotated[Annotated[bool, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description='Whether to download raw data or processed data. Processed data is the default.')] = None |
**kwargs | |
Returns |
---|
str |
download_dsp_labels
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
category | Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(annotation=NoneType, required=True, description='Which of the three acquisition categories to download data from')] |
**kwargs | |
Returns |
---|
str |
dsp_get_features_for_sample
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
sample_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Sample ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_sample_features_response.DspSampleFeaturesResponse |
dsp_sample_trained_features
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
feature_ax1 | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Feature axis 1')] |
feature_ax2 | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Feature axis 2')] |
feature_ax3 | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Feature axis 3')] |
category | Annotated[edgeimpulse_api.models.raw_data_category.RawDataCategory, FieldInfo(annotation=NoneType, required=True, description='Which of the three acquisition categories to download data from')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_trained_features_response.DspTrainedFeaturesResponse |
get_autotuner_results
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_autotuner_results.DspAutotunerResults |
get_dsp_config
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_config_response.DSPConfigResponse |
get_dsp_feature_importance
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_feature_importance_response.DspFeatureImportanceResponse |
get_dsp_feature_labels
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_feature_labels_response.DspFeatureLabelsResponse |
get_dsp_metadata
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
exclude_included_samples | Annotated[Annotated[bool, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description="Whether to exclude 'includedSamples' in the response (as these can slow down requests significantly).")] = None |
category | Annotated[Annotated[str, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description='Which of the acquisition categories to get metadata from')] = None |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_metadata_response.DSPMetadataResponse |
get_dsp_raw_sample
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
sample_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Sample ID')] |
limit_payload_values | Annotated[Annotated[int, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description='Limit the number of payload values in the response')] = None |
truncate_structured_labels | Annotated[Annotated[bool, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description='If true, only a slice of labels will be returned for samples with multiple labels.')] = None |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.get_sample_response.GetSampleResponse |
get_dsp_sample_slice
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
sample_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Sample ID')] |
slice_start | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Begin index of the slice')] |
slice_end | Annotated[Annotated[int, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, 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.')] = None |
truncate_structured_labels | Annotated[Annotated[bool, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, description='If true, only a slice of labels will be returned for samples with multiple labels.')] = None |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.get_sample_response.GetSampleResponse |
get_performance_all_variants
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_performance_all_variants_response.DspPerformanceAllVariantsResponse |
run_dsp_on_features_array
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
dsp_run_request_with_features | edgeimpulse_api.models.dsp_run_request_with_features.DspRunRequestWithFeatures |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_run_response.DspRunResponse |
run_dsp_sample_slice
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
sample_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Sample ID')] |
slice_start | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Begin index of the slice')] |
dsp_run_request_without_features | edgeimpulse_api.models.dsp_run_request_without_features.DspRunRequestWithoutFeatures |
slice_end | Annotated[Annotated[int, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, 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.')] = None |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_run_response_with_sample.DspRunResponseWithSample |
run_dsp_sample_slice_read_only
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
sample_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Sample ID')] |
slice_start | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Begin index of the slice')] |
slice_end | Annotated[Annotated[int, Strict(strict=True)] | None, FieldInfo(annotation=NoneType, required=True, 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.')] = None |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.dsp_run_response_with_sample.DspRunResponseWithSample |
set_dsp_config
Parameters | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
dsp_config_request | edgeimpulse_api.models.dsp_config_request.DSPConfigRequest |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.generic_api_response.GenericApiResponse |
start_profile_custom_dsp_block
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 | |
---|---|
self | |
project_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='Project ID')] |
dsp_id | Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, description='DSP Block ID, use the impulse functions to retrieve the ID')] |
dsp_run_request_without_features_read_only | edgeimpulse_api.models.dsp_run_request_without_features_read_only.DspRunRequestWithoutFeaturesReadOnly |
**kwargs | |
Returns |
---|
edgeimpulse_api.models.start_job_response.StartJobResponse |