< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.TagPerformance
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\TagPerformance.cs
Covered lines:7
Uncovered lines:11
Coverable lines:18
Total lines:99
Line coverage:38.8% (7 of 18)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_Name()-100%100%
get_Precision()-100%100%
get_PrecisionStdDeviation()-100%100%
get_Recall()-100%100%
get_RecallStdDeviation()-100%100%
get_AveragePrecision()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\TagPerformance.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.Linq;
 15
 16    /// <summary>
 17    /// Represents performance data for a particular tag in a trained
 18    /// iteration.
 19    /// </summary>
 20    public partial class TagPerformance
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the TagPerformance class.
 24        /// </summary>
 425        public TagPerformance()
 26        {
 27            CustomInit();
 428        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the TagPerformance class.
 32        /// </summary>
 33        /// <param name="precision">Gets the precision.</param>
 34        /// <param name="precisionStdDeviation">Gets the standard deviation for
 35        /// the precision.</param>
 36        /// <param name="recall">Gets the recall.</param>
 37        /// <param name="recallStdDeviation">Gets the standard deviation for
 38        /// the recall.</param>
 39        /// <param name="averagePrecision">Gets the average precision when
 40        /// applicable.</param>
 041        public TagPerformance(System.Guid id = default(System.Guid), string name = default(string), double precision = d
 42        {
 043            Id = id;
 044            Name = name;
 045            Precision = precision;
 046            PrecisionStdDeviation = precisionStdDeviation;
 047            Recall = recall;
 048            RecallStdDeviation = recallStdDeviation;
 049            AveragePrecision = averagePrecision;
 50            CustomInit();
 051        }
 52
 53        /// <summary>
 54        /// An initialization method that performs custom operations like setting defaults
 55        /// </summary>
 56        partial void CustomInit();
 57
 58        /// <summary>
 59        /// </summary>
 60        [JsonProperty(PropertyName = "id")]
 061        public System.Guid Id { get; private set; }
 62
 63        /// <summary>
 64        /// </summary>
 65        [JsonProperty(PropertyName = "name")]
 866        public string Name { get; private set; }
 67
 68        /// <summary>
 69        /// Gets the precision.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "precision")]
 872        public double Precision { get; private set; }
 73
 74        /// <summary>
 75        /// Gets the standard deviation for the precision.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "precisionStdDeviation")]
 878        public double PrecisionStdDeviation { get; private set; }
 79
 80        /// <summary>
 81        /// Gets the recall.
 82        /// </summary>
 83        [JsonProperty(PropertyName = "recall")]
 884        public double Recall { get; private set; }
 85
 86        /// <summary>
 87        /// Gets the standard deviation for the recall.
 88        /// </summary>
 89        [JsonProperty(PropertyName = "recallStdDeviation")]
 890        public double RecallStdDeviation { get; private set; }
 91
 92        /// <summary>
 93        /// Gets the average precision when applicable.
 94        /// </summary>
 95        [JsonProperty(PropertyName = "averagePrecision")]
 096        public double? AveragePrecision { get; private set; }
 97
 98    }
 99}