| | 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 | |
|
| | 11 | | namespace 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> |
| 2 | 26 | | public IterationPerformance() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 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> |
| 0 | 44 | | public IterationPerformance(IList<TagPerformance> perTagPerformance = default(IList<TagPerformance>), double pre |
| | 45 | | { |
| 0 | 46 | | PerTagPerformance = perTagPerformance; |
| 0 | 47 | | Precision = precision; |
| 0 | 48 | | PrecisionStdDeviation = precisionStdDeviation; |
| 0 | 49 | | Recall = recall; |
| 0 | 50 | | RecallStdDeviation = recallStdDeviation; |
| 0 | 51 | | AveragePrecision = averagePrecision; |
| | 52 | | CustomInit(); |
| 0 | 53 | | } |
| | 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")] |
| 26 | 64 | | public IList<TagPerformance> PerTagPerformance { get; private set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets the precision. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "precision")] |
| 4 | 70 | | public double Precision { get; private set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets the standard deviation for the precision. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "precisionStdDeviation")] |
| 4 | 76 | | public double PrecisionStdDeviation { get; private set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets the recall. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "recall")] |
| 4 | 82 | | public double Recall { get; private set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets the standard deviation for the recall. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "recallStdDeviation")] |
| 4 | 88 | | public double RecallStdDeviation { get; private set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets the average precision when applicable. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "averagePrecision")] |
| 0 | 94 | | public double? AveragePrecision { get; private set; } |
| | 95 | |
|
| | 96 | | } |
| | 97 | | } |