Skip to main content

Classes

ClassifyApi


METHODS

classify_image

Classify an image Test out a trained impulse (using a posted image).

classify_sample

Classify sample (deprecated) This API is deprecated, use classifySampleV2 instead (/v1/api/{projectId}/classify/v2/{sampleId}). Classify a complete file against the current impulse. 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 classify for every window that is extracted.

classify_sample_by_learn_block

Classify sample by learn block This API is deprecated, use classifySampleByLearnBlockV2 (/v1/api/{projectId}/classify/anomaly-gmm/v2/{blockId}/{sampleId}) instead. Classify a complete file against the specified learn block. 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 classify for every window that is extracted.

classify_sample_by_learn_block_v2

Classify sample by learn block Classify a complete file against the specified learn block. 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 classify for every window that is extracted. Depending on the size of your file, whether your sample is resampled, and whether the result is cached you’ll get either the result or a job back. If you receive a job, then wait for the completion of the job, and then call this function again to receive the results. The unoptimized (float32) model is used by default, and classification with an optimized (int8) model can be slower.

classify_sample_for_variants

Classify sample for the given set of variants Classify a complete file against the current impulse, for all given variants. Depending on the size of your file and whether the sample is resampled, you may get a job ID in the response.

classify_sample_v2

Classify sample Classify a complete file against the current impulse. 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 classify for every window that is extracted. Depending on the size of your file, whether your sample is resampled, and whether the result is cached you’ll get either the result or a job back. If you receive a job, then wait for the completion of the job, and then call this function again to receive the results. The unoptimized (float32) model is used by default, and classification with an optimized (int8) model can be slower.

get_classify_job_result

Classify job result Get classify job result, containing the result for the complete testing dataset.

get_classify_job_result_page

Single page of a classify job result Get classify job result, containing the predictions for a given page.

get_sample_window_from_cache

Get a window of raw sample features from cache, after a live classification job has completed. Get raw sample features for a particular window. This is only available after a live classification job has completed and raw features have been cached.