modzyClient.getModelVersionOutputSample
Retrieve the output sample
modzyClient.getModelVersionOutputSample(modelId, versionId)
Gets the output sample associated with the model and version provided
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
modelId | string | A model identifier assigned by Modzy | 'ed542963de' |
versionId | string | The model’s version number. | '0.0.27' |
Returns
A JSON string with the result API response containing the model output sample
{
"status": "SUCCESSFUL",
"engine": "model-batch-ed542963de-1-0-27-dcbd89bcd-2k69c",
"startTime": "2021-07-13T22:24:08.681+0000",
"updateTime": "2021-07-13T22:24:18.093+0000",
"endTime": "2021-07-13T22:24:18.093+0000",
"elapsedTime": 9412,
"results.json": {
"data": {
"result": {
"classPredictions": [
{
"class": "compound",
"score": 0.6588
},
{
"class": "neu",
"score": 0.646
},
{
"class": "pos",
"score": 0.354
},
{
"class": "neg",
"score": 0
}
]
},
"explanation": null,
"drift": null
}
},
"voting": {
"up": 0,
"down": 0
}
}
Examples
outputSample = await modzyClient.getModelVersionOutputSample('ed542963de', '0.0.27')
Updated over 2 years ago