{
"dataset": {
"startTime": "2024-06-25T06:00:00.000Z", #target start time
"endTime": "2024-07-26T05:59:59.999Z", #target end time
"externalModelVersionIds": [],
"externalBatchIds": [],
"environmentName": "production",
"filters": []
},
"performanceMetric": "TargetMetric",
"predictionValueClass": "positiveClassValue",
"timeZone": "time/zone", #The timezone of the request, used to determine the localized offset from UTC.
"id": "model_id"
}
{
"dataset": {
"startTime": "2024-06-25T06:00:00.000Z", #target start time
"endTime": "2024-07-26T05:59:59.999Z", #target end time
"externalModelVersionIds": [],
"externalBatchIds": [],
"environmentName": "production",
"filters": []
},
"customMetricConfig": "select count(*) from model", #udf in SQL syntax
"timeZone": "time/zone", #The timezone of the request, used to determine the localized offset from UTC.
"id": "model_id"
}
Metric Over Time
To analyze metric values over time or plot reconstruction, use the following query
{
"performanceMetric": "metric",
"positiveClass": "positive_class_value",
"timeZone": "time/zome", #The timezone of the request, used to determine the localized offset from UTC.
"id": "model_id",
"startTime": "2024-06-25T06:00:00.000Z",
"endTime": "2024-07-26T05:59:59.999Z",
"environmentName": "production",
"timeSeriesDataGranularity": "month", #desired granularity
}
{
"timeZone": "time/zone",
"id": "model_id",
"startTime": "2024-06-25T06:00:00.000Z", #target start time
"endTime": "2024-07-26T05:59:59.999Z", #target end time
"environmentName": "production", #The timezone of the request, used to determine the localized offset from UTC.
"timeSeriesDataGranularity": "month", #target granularity for points
"customMetricConfig": "select count(*) from model" #udf in SQL syntax
}
Drift Over Time
This endpoint allows you to query drift data points for a specific model within a given time interval. You can use it to monitor feature drift using metrics like PSI (Population Stability Index), KL (Kullback-Leibler divergence), or JS (Jensen-Shannon divergence). Your model baseline is defaulted as the baseline in this query but you can optionally specify a referenceDataset.
queryGetDriftOverTime { node(id: "MODEL ID") {...onModel { dimension( startTime: "2024-08-20T00:00:00Z" endTime: "2024-08-30T00:00:00Z" category: featureLabel name: "annual_income" environmentName: production ) { name driftHistory( startTime: "2024-08-20T00:00:00Z" endTime: "2024-08-30T00:00:00Z" driftMetric: psi timeSeriesDataGranularity: day timeZone: "UTC" ) {...onTimeSeriesWithThresholdDataType { dataPoints { x y } } } } } }}query
You can query the model schema to gather key statistics such as cardinality, percent empty, and drift. The query below retrieves data on features and predictions, including percentEmpty, cardinality, and drift metrics.