title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | ms.devlang | monikerRange |
---|---|---|---|---|---|---|---|---|---|
ServiceResponse class |
The ServiceResponse class is for SQL Machine Learning Services and Machine Learning Server for managing web services. |
WilliamDAssafMSFT |
wiassaf |
07/15/2019 |
sql |
machine-learning-services |
reference |
python |
>=sql-server-2017||>=sql-server-linux-ver15 |
azureml.deploy.server.service.ServiceResponse(api, response, output_schema)
Represents the response from a service invocation. The response will contain any outputs and file artifacts produced in addition to any console output or errors messages.
api
Gets the api endpoint.
artifact(artifact_name, decode=True, encoding=None)
A convenience function to look up a file artifact by name and optionally base64 decode it.
The name of the file artifact.
Whether to decode the Base64 encoded artifact string. The
default is True
.
The encoding scheme to be used. The default is to apply no encoding. For a list of all encoding schemes please visit Standard Encodings: https://docs.python.org/3/library/codecs.html#standard-encodings
The file artifact as a Base64 encoded string if
decode=False
otherwise the decoded string.
artifacts
Returns a list
of non-decoded response file artifacts if present.
console_output
Gets the console output if present.
error
Gets the error if present.
output(output)
A convenience function to look up an output value by name.
The name of the output.
The service output's value.
outputs
Gets the response outputs if present.
raw_outputs
Gets the raw response outputs if present.