from openlayer import Openlayer
client = Openlayer()
client.inference_pipelines.test_results.list(
inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
){
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"projectVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"inferencePipelineId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"dateUpdated": "2024-03-22T11:31:01.185Z",
"dateDataStarts": "2024-03-22T11:31:01.185Z",
"dateDataEnds": "2024-03-22T11:31:01.185Z",
"status": "passing",
"statusMessage": "Test successfully processed.",
"goal": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"number": 1,
"name": "No duplicate rows",
"dateCreated": "2024-03-22T11:31:01.185Z",
"dateUpdated": "2024-03-22T11:31:01.185Z",
"description": "This test checks for duplicate rows in the dataset.",
"type": "integrity",
"subtype": "duplicateRowCount",
"creatorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"originProjectVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"thresholds": [
{
"measurement": "duplicateRowCount",
"insightName": "duplicateRowCount",
"insightParameters": [
{
"name": "column_name",
"value": "<unknown>"
}
],
"thresholdMode": "manual",
"operator": "<=",
"value": 0
}
],
"dateArchived": "2024-03-22T11:31:01.185Z",
"suggested": false,
"commentCount": 0,
"evaluationWindow": 3600,
"delayWindow": 0,
"archived": false,
"usesMlModel": false,
"usesValidationDataset": true,
"usesTrainingDataset": false,
"usesReferenceDataset": false,
"usesProductionData": false
},
"goalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"expectedValues": [
{
"measurement": "<string>",
"upperThreshold": 123,
"lowerThreshold": 123
}
],
"rows": "https://api.openlayer.com/v1/versions/3fa85f64-5717-4562-b3fc-2c963f66afa6/rows?label=validation",
"rowsBody": {
"columnFilters": [
{
"measurement": "openlayer_token_set",
"operator": "contains_none",
"value": [
"cat"
]
}
],
"searchQueryOr": [
"<string>"
],
"searchQueryAnd": [
"<string>"
],
"notSearchQueryOr": [
"<string>"
],
"notSearchQueryAnd": [
"<string>"
],
"rowIdList": [
123
],
"excludeRowIdList": [
123
]
}
}
]
}List the latest test results for a data source (formerly known as “inference pipeline”).
from openlayer import Openlayer
client = Openlayer()
client.inference_pipelines.test_results.list(
inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
){
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"projectVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"inferencePipelineId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"dateUpdated": "2024-03-22T11:31:01.185Z",
"dateDataStarts": "2024-03-22T11:31:01.185Z",
"dateDataEnds": "2024-03-22T11:31:01.185Z",
"status": "passing",
"statusMessage": "Test successfully processed.",
"goal": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"number": 1,
"name": "No duplicate rows",
"dateCreated": "2024-03-22T11:31:01.185Z",
"dateUpdated": "2024-03-22T11:31:01.185Z",
"description": "This test checks for duplicate rows in the dataset.",
"type": "integrity",
"subtype": "duplicateRowCount",
"creatorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"originProjectVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"thresholds": [
{
"measurement": "duplicateRowCount",
"insightName": "duplicateRowCount",
"insightParameters": [
{
"name": "column_name",
"value": "<unknown>"
}
],
"thresholdMode": "manual",
"operator": "<=",
"value": 0
}
],
"dateArchived": "2024-03-22T11:31:01.185Z",
"suggested": false,
"commentCount": 0,
"evaluationWindow": 3600,
"delayWindow": 0,
"archived": false,
"usesMlModel": false,
"usesValidationDataset": true,
"usesTrainingDataset": false,
"usesReferenceDataset": false,
"usesProductionData": false
},
"goalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"expectedValues": [
{
"measurement": "<string>",
"upperThreshold": 123,
"lowerThreshold": 123
}
],
"rows": "https://api.openlayer.com/v1/versions/3fa85f64-5717-4562-b3fc-2c963f66afa6/rows?label=validation",
"rowsBody": {
"columnFilters": [
{
"measurement": "openlayer_token_set",
"operator": "contains_none",
"value": [
"cat"
]
}
],
"searchQueryOr": [
"<string>"
],
"searchQueryAnd": [
"<string>"
],
"notSearchQueryOr": [
"<string>"
],
"notSearchQueryAnd": [
"<string>"
],
"rowIdList": [
123
],
"excludeRowIdList": [
123
]
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.
The inference pipeline id (a UUID).
The page to return in a paginated query.
x >= 1Maximum number of items to return per page.
1 <= x <= 100Filter objects by test type. Available types are integrity, consistency, performance, fairness, and robustness.
integrity, consistency, performance, fairness, robustness Status OK.
Show child attributes
Was this page helpful?