Skip to main content
Skip table of contents

tw.endpoints.anomaly_detection.detect

tw.endpoints.anomaly_detection.detect(configuration=dict,dataset=pandas.DataFrame,model=dict)

Submit an anomaly-detection job.
POST ``/anomaly-detection/detect``

Parameters

dataset : pandas.DataFrame

Data on which anomaly detection is performed.

model: dict

A trained anomaly-detection model.

Returns

dict

API response containing at least ``"id"`` (the new job identifier).

Example Usage

CODE
anomaly_detection_detect_response = tw.endpoints.anomaly_detection.detect(
    dataset = dataset,
    model = anomaly_detection_model_response
)

Example Output

CODE
anomaly_detection_detect_id = anomaly_detection_detect_response['id']
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.