client.models.get_version_output_sample

Retrieve the output sample

client.models.get_version_output_sample(model, version)

Gets the output sample associated with the model and version provided

Parameters

ParameterTypeDescriptionExample
modelstr
Model
A model identifier assigned by Modzy or a preloaded model object.'ed542963de'
versionstrThe model’s version number. It follows the semantic versioning format.'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

>>>output_sample = client.models.get_version_output_sample('ed542963de', '0.0.27')