< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.SuggestedTagAndRegion
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\SuggestedTagAndRegion.cs
Covered lines:5
Uncovered lines:11
Coverable lines:16
Total lines:94
Line coverage:31.2% (5 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_Project()-100%100%
get_Iteration()-100%100%
get_Created()-0%100%
get_Predictions()-100%100%
get_PredictionUncertainty()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\SuggestedTagAndRegion.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Result of a suggested tags and regions request.
 20    /// </summary>
 21    public partial class SuggestedTagAndRegion
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the SuggestedTagAndRegion class.
 25        /// </summary>
 626        public SuggestedTagAndRegion()
 27        {
 28            CustomInit();
 629        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the SuggestedTagAndRegion class.
 33        /// </summary>
 34        /// <param name="id">Prediction Id.</param>
 35        /// <param name="project">Project Id.</param>
 36        /// <param name="iteration">Iteration Id.</param>
 37        /// <param name="created">Date this prediction was created.</param>
 38        /// <param name="predictions">List of predictions.</param>
 39        /// <param name="predictionUncertainty">Uncertainty (entropy) of
 40        /// suggested tags or regions per image.</param>
 041        public SuggestedTagAndRegion(System.Guid id = default(System.Guid), System.Guid project = default(System.Guid), 
 42        {
 043            Id = id;
 044            Project = project;
 045            Iteration = iteration;
 046            Created = created;
 047            Predictions = predictions;
 048            PredictionUncertainty = predictionUncertainty;
 49            CustomInit();
 050        }
 51
 52        /// <summary>
 53        /// An initialization method that performs custom operations like setting defaults
 54        /// </summary>
 55        partial void CustomInit();
 56
 57        /// <summary>
 58        /// Gets prediction Id.
 59        /// </summary>
 60        [JsonProperty(PropertyName = "id")]
 061        public System.Guid Id { get; private set; }
 62
 63        /// <summary>
 64        /// Gets project Id.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "project")]
 867        public System.Guid Project { get; private set; }
 68
 69        /// <summary>
 70        /// Gets iteration Id.
 71        /// </summary>
 72        [JsonProperty(PropertyName = "iteration")]
 873        public System.Guid Iteration { get; private set; }
 74
 75        /// <summary>
 76        /// Gets date this prediction was created.
 77        /// </summary>
 78        [JsonProperty(PropertyName = "created")]
 079        public System.DateTime Created { get; private set; }
 80
 81        /// <summary>
 82        /// Gets list of predictions.
 83        /// </summary>
 84        [JsonProperty(PropertyName = "predictions")]
 1885        public IList<Prediction> Predictions { get; private set; }
 86
 87        /// <summary>
 88        /// Gets uncertainty (entropy) of suggested tags or regions per image.
 89        /// </summary>
 90        [JsonProperty(PropertyName = "predictionUncertainty")]
 091        public double PredictionUncertainty { get; private set; }
 92
 93    }
 94}