modzyClient.getModelVersionOutputSample

Retrieve the output sample

modzyClient.getModelVersionOutputSample(String modelId, String versionId)

Gets the output sample associated with the model and version provided

Parameters

Parameter

Type

Description

Example

modelId

java.lang.String

A model identifier assigned by Modzy.

"ed542963de"

versionId

java.lang.String

The model’s version number.

"0.0.27"

Returns

String 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

String outputSample =  modzyClient.getModelVersionOutputSample("ed542963de", "1.0.1");

Did this page help you?