LearnApi
- api_client=None
Methods
anomaly_trained_features
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn 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=)]
- **kwargs
anomaly_trained_features_per_sample
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn 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
download_keras_data
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
download_keras_export
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
download_learn_model
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- model_download_id: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description=‘Model download ID, which can be obtained from the project information’, extra=)]
- **kwargs
download_pretrained_model
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- pretrained_model_download_type: pydantic.types.StrictStr
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
get_anomaly
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_anomaly_metadata
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_gmm_metadata
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_keras
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_keras_data_explorer_features
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_keras_metadata
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- exclude_labels: Annotated[pydantic.types.StrictBool | None, FieldInfo(default=PydanticUndefined, description=‘If set to “true”, the “labels” field is left empty (which can be big on e.g. regression projects).’, extra=)] = None
- **kwargs
get_learn_x_data
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_learn_y_data
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
get_pretrained_model_info
uploadPretrainedModel
) input/output tensors. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob
.
Parameters
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
profile_pretrained_model
uploadPretrainedModel
. This is using the project’s selected latency device. 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[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
save_pretrained_model_parameters
startDeployPretrainedModelJob
.
Parameters
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- save_pretrained_model_request: edgeimpulse_api.models.save_pretrained_model_request.SavePretrainedModelRequest
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
set_anomaly
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- set_anomaly_parameter_request: edgeimpulse_api.models.set_anomaly_parameter_request.SetAnomalyParameterRequest
- **kwargs
set_keras
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- set_keras_parameter_request: edgeimpulse_api.models.set_keras_parameter_request.SetKerasParameterRequest
- **kwargs
start_anomaly_profile_job
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
start_keras_profile_job
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- learn_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Learn Block ID, use the impulse functions to retrieve the ID’, extra=)]
- **kwargs
test_pretrained_model
uploadPretrainedModel
. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob
.
Parameters
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- test_pretrained_model_request: edgeimpulse_api.models.test_pretrained_model_request.TestPretrainedModelRequest
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
test_pretrained_model_images
uploadPretrainedModel
. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob
. This will transform raw image data (e.g. RGB to grayscale, resize) before classifying. To classify raw features, see testPretrainedModel
.
Parameters
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- test_pretrained_model_images_request: edgeimpulse_api.models.test_pretrained_model_images_request.TestPretrainedModelImagesRequest
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- **kwargs
upload_pretrained_model
startDeployPretrainedModelJob
.
Parameters
- self
- project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description=‘Project ID’, extra=)]
- model_file: pydantic.types.StrictStr
- model_file_name: pydantic.types.StrictStr
- model_file_type: pydantic.types.StrictStr
- impulse_id: Annotated[pydantic.types.StrictInt | None, FieldInfo(default=PydanticUndefined, description=‘Impulse ID. If this is unset then the default impulse is used.’, extra=)] = None
- representative_features: pydantic.types.StrictStr | None = None
- device: Annotated[pydantic.types.StrictStr | None, FieldInfo(default=PydanticUndefined, description=‘MCU used for calculating latency, query
latencyDevices
inlistProject
for a list of supported devices (and use the \“mcu\” property here). If this is kept empty then we’ll show an overview of multiple devices.’, extra=)] = None - **kwargs