Skip to main content

Metrics

This section describes:

Monitorable Metrics

Monitorable metrics are either:

  • Column metrics specific to a column, such as statistical values and distribution metrics.
  • Dataset metrics relating to the overall dataset or a segment of it, including performance metrics and integration health.

These metrics can be monitored by specifying them as the metric in the monitor configuration, and many of them can be queried using the WhyLabs Data API.

Column metrics can be monitored for specific columns in the dataset, and must be used in an analyzer with a targetMatrix of type column as shown in the Targeting Columns section.

Dataset metrics must be used in an analyzer with a targetMatrix of type dataset as shown in the Targeting Datasets section.

Distribution Metrics

The distribution metrics are column metrics that can be used in analyzers of type drift. The frequent_items metric can also be used with an analyzer of type frequent_string_comparison.

Metric nameDescriptionData API Support
frequent_itemsA complex metric representing the counts of the most frequent discrete values in the columnNo
histogramA complex metric representing the numeric distribution of values in the column using counts of binned numeric valuesNo

Statistical Value Metrics

These statistical metrics are column metrics that can be used in analyzers with types of diff, fixed, seasonal and stddev.

Metric nameDescriptionData API Support
minThe minimum value in the columnYes
maxThe maximum value in the columnYes
meanThe mean of values in the columnYes
medianThe median value (i.e. 50th percentile) of the values in the columnYes
quantile_5The 5th percentile value of the columnYes
quantile_25The 25th percentile value of the columnYes
quantile_75The 75th percentile value of the columnYes
quantile_95The 95th percentile value of the columnYes
quantile_99The 99th percentile value of the columnYes
std_devThe standard deviation of the values in the columnYes
varianceThe variance of the values in the columnYes

Count Metrics

Count metrics are column metrics that can be used in analyzers of type diff, fixed and stddev.

Metric nameDescriptionData API Support
countThe count of values in the columnYes
count_nullThe count of missing/null/NaN values in the columnYes
count_null_ratioThe ratio of missing/null/NaN values in the columnYes
unique_estAn estimate of the count of unique values in the columnYes
unique_est_ratioThe ratio of the unique value count estimate for the columnYes
unique_est_lowerThe lower bound on the unique value count estimate for the columnYes
unique_est_upperThe upper bound on the unique value count estimate for the columnYes
count_boolThe count of boolean values in the columnYes
count_bool_ratioThe ratio of boolean values in the columnYes
count_integralThe count of integer values in the columnYes
count_integral_ratioThe ratio of integer values in the columnYes
count_fractionalThe count of fractional values in the columnYes
count_fractional_ratioThe ratio of fractional values in the columnYes
count_stringThe count of string values in the columnYes
count_string_ratioThe ratio of string values in the columnYes

Other Column Metrics

The inferred_data_type metric is a colum metric that can be used in analyzers of type comparison.

Metric nameDescriptionData API Support
inferred_data_typeThe inferred data type of the values in the columnNo

Classification Metrics

Classification metrics are dataset metrics that can be used in analyzers of type diff, fixed and stddev, providing classification model metrics have been uploaded for the dataset.

Metric nameDescriptionData API Support
classification.f1F1 scoreYes
classification.precisionPrecisionYes
classification.recallRecallYes
classification.accuracyAccuracyYes
classification.aurocArea under the receiver-operator curveYes

Regression Metrics

Regression metrics are dataset metrics that can be used in analyzers of type diff, fixed and stddev, providing regression model metrics have been uploaded for the dataset.

Metric nameDescriptionData API Support
regression.mseMean squared errorYes
regression.maeMean absolute errorYes
regression.rmseRoot mean square errorYes

Integration Health Metrics

Integration health metrics are dataset metrics that should only be used in an analyzer of type fixed.

Metric nameDescriptionData API Support
missingDatapoint0 if the last batch contained profile data; 1 if it is missingNo
secondsSinceLastUploadNumber of seconds elapsed since the last profile uploadNo

Metrics resulting from monitoring

This section describes the set of monitor metrics that are only available after a monitor has analyzed the profile data. All monitor metrics are currently scoped to a specific column and can be scoped to a specific monitor.

Drift

Drift metrics are only available for monitors of type drift.

Metric nameDescriptionData API Support
avg_driftThe average of the drift values determined for a specific batchYes
max_driftThe maximum of the drift values determined for a specific batchYes
min_driftThe minimum of the drift values determined for a specific batchYes

Anomaly Count

Available for all monitors.

Metric nameDescriptionData API Support
anomaly_countA count of the anomalies that have been detected in a specific batchYes

Note: The API requires a column field, so for monitors targeting the dataset as a whole (e.g. performance monitors), the column field should be set to __internal__.datasetMetrics.

Diff

Diff metrics are only available for monitors of type diff.

Metric nameDescriptionData API Support
min_diffThe minimum diff value measured for a specific batchYes
max_diffThe maximum diff value measured for a specific batchYes

Threshold

Threshold metrics are available for any monitor which has absolute thresholds (fixed type) or calculated thresholds (e.g. stddev, pct types).

Metric nameDescriptionData API Support
min_thresholdThe minimum threshold value determined for a specific batchYes
max_thresholdThe maximum threshold value determined for a specific batchYes
Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration