< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.IterationPerformance
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\IterationPerformance.cs
Covered lines:7
Uncovered lines:9
Coverable lines:16
Total lines:97
Line coverage:43.7% (7 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_PerTagPerformance()-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\IterationPerformance.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    /// Represents the detailed performance data for a trained iteration.
 20    /// </summary>
 21    public partial class IterationPerformance
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the IterationPerformance class.
 25        /// </summary>
 226        public IterationPerformance()
 27        {
 28            CustomInit();
 229        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the IterationPerformance class.
 33        /// </summary>
 34        /// <param name="perTagPerformance">Gets the per-tag performance
 35        /// details for this iteration.</param>
 36        /// <param name="precision">Gets the precision.</param>
 37        /// <param name="precisionStdDeviation">Gets the standard deviation for
 38        /// the precision.</param>
 39        /// <param name="recall">Gets the recall.</param>
 40        /// <param name="recallStdDeviation">Gets the standard deviation for
 41        /// the recall.</param>
 42        /// <param name="averagePrecision">Gets the average precision when
 43        /// applicable.</param>
 044        public IterationPerformance(IList<TagPerformance> perTagPerformance = default(IList<TagPerformance>), double pre
 45        {
 046            PerTagPerformance = perTagPerformance;
 047            Precision = precision;
 048            PrecisionStdDeviation = precisionStdDeviation;
 049            Recall = recall;
 050            RecallStdDeviation = recallStdDeviation;
 051            AveragePrecision = averagePrecision;
 52            CustomInit();
 053        }
 54
 55        /// <summary>
 56        /// An initialization method that performs custom operations like setting defaults
 57        /// </summary>
 58        partial void CustomInit();
 59
 60        /// <summary>
 61        /// Gets the per-tag performance details for this iteration.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "perTagPerformance")]
 2664        public IList<TagPerformance> PerTagPerformance { get; private set; }
 65
 66        /// <summary>
 67        /// Gets the precision.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "precision")]
 470        public double Precision { get; private set; }
 71
 72        /// <summary>
 73        /// Gets the standard deviation for the precision.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "precisionStdDeviation")]
 476        public double PrecisionStdDeviation { get; private set; }
 77
 78        /// <summary>
 79        /// Gets the recall.
 80        /// </summary>
 81        [JsonProperty(PropertyName = "recall")]
 482        public double Recall { get; private set; }
 83
 84        /// <summary>
 85        /// Gets the standard deviation for the recall.
 86        /// </summary>
 87        [JsonProperty(PropertyName = "recallStdDeviation")]
 488        public double RecallStdDeviation { get; private set; }
 89
 90        /// <summary>
 91        /// Gets the average precision when applicable.
 92        /// </summary>
 93        [JsonProperty(PropertyName = "averagePrecision")]
 094        public double? AveragePrecision { get; private set; }
 95
 96    }
 97}