utils.types.Metrics

Arize enum for metrics grouping when validating a schema column in log() call.

Method

repr()

To view applicable metrics, pass in your desired SDK Metric from above.

repr(Metrics.[SDK Metric])

Code Example

response = arize_client.log(
    model_id='sample-binary-classification-model', 
    ...
    metrics_validation=[Metrics.CLASSIFICATION]

)

response = arize_client.log(
    model_id='sample-regression-model', 
    ...
    metrics_validation=[Metrics.REGRESSION]
)

response = arize_client.log(
    model_id='sample-ranking-model', 
    ...
    metrics_validation=[Metrics.RANKING, Metrics.RANKING_LABEL]
)

Last updated

Copyright © 2023 Arize AI, Inc