Skip to main content

Functions

check_response_errors

Check for standard errors and raise an exception with the details if found.

configure_generic_client

Configure generic api client which the right key.

connect_websocket

Connects to the websocket server. Parameters: token (str): The authentication token. host (str, optional): The hostname. If None, API_ENDPOINT will be used. Returns: object: Websocket object.

default_project_id_for

Derive project id from api_key used to configure generic client.

encode_file_as_base64

Encode a file as base64.

get_organization_websocket

Gets a websocket to listen to organization events.

get_profile_devices

Pull a list of profile devices.

get_project_deploy_targets

Pull a list of deploy targets.

get_project_websocket

Gets a websocket to listen to project events.

get_user_agent

Get user agent string for API calls so we can track usage.

inspect_model

Load tflite model.

inspect_representative_data

Ensure representative data is saved to disk for upload.

is_keras_model

Check if model is a keras model.

is_numpy_array

Check if array is a numpy array.

is_onnx_model

Check if given model is an onnx model.

is_path_to_numpy_file

Check if given path is a numpy file.

is_path_to_onnx_model

Check if given path is a onnx file.

is_path_to_tf_saved_model_directory

Check if directory contains a saved model.

is_path_to_tf_saved_model_zipped

Check if path is poiting to a zipped model.

is_type_accepted_by_open

Check if given path is a. string or a Path.

make_zip_archive

Create zip archive from a model path.

numpy_installed

Return True if NumPy is installed, otherwise False.

onnx_installed

Return True if ONNX is installed, otherwise False.

pandas_installed

Return True if pandas is installed, otherwise False.

poll

Poll a specific job within a project until done or timmeout is reached.

run_job_until_completion

Runs a project or organization job until completion.

run_organization_job_until_completion

Runs an organization job until completion.

run_project_job_until_completion

Runs a project job until completion.

save_model

Save a machine learning model to the specified directory.

save_representative_data

Save the representive data to a directory.

tensorflow_installed

Return True if TensorFlow is installed, otherwise False.

upload_pretrained_model_and_data

Upload a model and data to Edge Impulse servers.