Source code for azure.cognitiveservices.vision.customvision.training.models.prediction_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class Prediction(Model): """Prediction result. Variables are only populated by the server, and will be ignored when sending a request. :ivar probability: Probability of the tag. :vartype probability: float :ivar tag_id: Id of the predicted tag. :vartype tag_id: str :ivar tag_name: Name of the predicted tag. :vartype tag_name: str :ivar bounding_box: Bounding box of the prediction. :vartype bounding_box: ~azure.cognitiveservices.vision.customvision.training.models.BoundingBox """ _validation = { 'probability': {'readonly': True}, 'tag_id': {'readonly': True}, 'tag_name': {'readonly': True}, 'bounding_box': {'readonly': True}, } _attribute_map = { 'probability': {'key': 'probability', 'type': 'float'}, 'tag_id': {'key': 'tagId', 'type': 'str'}, 'tag_name': {'key': 'tagName', 'type': 'str'}, 'bounding_box': {'key': 'boundingBox', 'type': 'BoundingBox'}, } def __init__(self, **kwargs) -> None: super(Prediction, self).__init__(**kwargs) self.probability = None self.tag_id = None self.tag_name = None self.bounding_box = None