Skip to main content

Classes

LearnApi


METHODS

anomaly_trained_features

Trained features Get a sample of trained features, this extracts a number of samples and their features.

anomaly_trained_features_per_sample

Trained features for sample Get trained features for a single sample. This runs both the DSP prerequisites and the anomaly classifier.

download_keras_data

Download Keras data export Download the data of an exported Keras block - needs to be exported via ‘exportKerasBlockData’ first

download_keras_export

Download Keras export Download an exported Keras block - needs to be exported via ‘exportKerasBlock’ first

download_learn_model

Download trained model Download a trained model for a learning block. Depending on the block this can be a TensorFlow model, or the cluster centroids.

download_pretrained_model

Download pretrained model Download a pretrained model file

get_anomaly

Anomaly information Get information about an anomaly block, such as its dependencies. Use the impulse blocks to find the learnId.

get_anomaly_metadata

Anomaly metadata Get metadata about a trained anomaly block. Use the impulse blocks to find the learnId.

get_gmm_metadata

Anomaly GMM metadata Get raw model metadata of the Gaussian mixture model (GMM) for a trained anomaly block. Use the impulse blocks to find the learnId.

get_keras

Keras information Get information about a Keras block, such as its dependencies. Use the impulse blocks to find the learnId.

get_keras_data_explorer_features

Get data explorer features t-SNE2 output of the raw dataset using embeddings from this Keras block

get_keras_metadata

Keras metadata Get metadata about a trained Keras block. Use the impulse blocks to find the learnId.

get_learn_x_data

Download data Download the processed data for this learning block. This is data already processed by the signal processing blocks.

get_learn_y_data

Download labels Download the labels for this learning block. This is data already processed by the signal processing blocks. Not all blocks support this function. If so, a GenericApiResponse is returned with an error message.

get_pretrained_model_info

Get pretrained model Receive info back about the earlier uploaded pretrained model (via uploadPretrainedModel) input/output tensors. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.

profile_pretrained_model

Profile pretrained model Returns the latency, RAM and ROM used for the pretrained model - upload first via 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.

save_pretrained_model_parameters

Save parameters for pretrained model Save input / model configuration for a pretrained model. This overrides the current impulse. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.

set_anomaly

Anomaly settings Configure the anomaly block, such as its minimum confidence score. Use the impulse blocks to find the learnId.

set_keras

Keras settings Configure the Keras block, such as its minimum confidence score. Use the impulse blocks to find the learnId.

start_anomaly_profile_job

Start a profile job for an anomaly learn block Starts an asynchronous profiling job, if there’s no profiling information for the currently selected latency device. Afterwards, re-fetch model metadata to get the profiling job IDs.

start_keras_profile_job

Start a profile job for a Keras learn block Starts an asynchronous profiling job, if there’s no profiling information for the currently selected latency device. Afterwards, re-fetch model metadata to get the profiling job IDs.

test_pretrained_model

Test pretrained model Test out a pretrained model (using raw features) - upload first via uploadPretrainedModel. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.

test_pretrained_model_images

Test pretrained model using image data Test out a pretrained model (using image data) - upload first via 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.

upload_pretrained_model

Upload a pretrained model Upload a pretrained model and receive info back about the input/output tensors. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.