modzyClient.getModelVersionOutputSample

Retrieve the output sample

modzyClient.getModelVersionOutputSample(modelId, versionId)

Gets the output sample associated with the model and version provided

Parameters

ParameterTypeDescriptionExample
modelIdstringA model identifier assigned by Modzy'ed542963de'
versionIdstringThe 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')