Tracking Agent¶
This page outlines the operations, endpoints, parameters, and example requests and responses for the Tracking Agent.
POST /api/v2/deployments/{deploymentId}/predictionInputs/fromDataset/¶
Assigns prediction dataset to the external deployment to enable the analysis of historical model performance. Multiple datasets containing historical predictions for the external deployment can be uploaded. This requires one request for each dataset. For a regression deployment, predictions can be either an int or float. For a classification (binary/multiclass) deployment, predictions must be lists with each list containing probabilities for each class.
Code samples¶
curl -X POST https://app.datarobot.com/api/v2/deployments/{deploymentId}/predictionInputs/fromDataset/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {access-token}" \
-d '{undefined}'
Body parameter¶
{
"datasetId": "string",
"datasetVersionId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
deploymentId | path | string | true | Unique identifier of the deployment. |
body | body | PredictionDatasetAssignment | false | none |
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
202 | Accepted | Submitted successfully. | None |
405 | Method Not Allowed | Data can only be uploaded to an external deployment. | None |
422 | Unprocessable Entity | Unable to process predictions upload. | None |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
Schemas¶
PredictionDatasetAssignment
{
"datasetId": "string",
"datasetVersionId": "string"
}
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
datasetId | string | true | the ID of the dataset | |
datasetVersionId | string | false | the ID of the dataset version |