/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the glue-2017-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Glue.Model { /// /// The evaluation metrics for the find matches algorithm. The quality of your machine /// learning transform is measured by getting your transform to predict some matches and /// comparing the results to known matches from the same dataset. The quality metrics /// are based on a subset of your data, so they are not precise. /// public partial class FindMatchesMetrics { private double? _areaUnderPRCurve; private List _columnImportances = new List(); private ConfusionMatrix _confusionMatrix; private double? _f1; private double? _precision; private double? _recall; /// /// Gets and sets the property AreaUnderPRCurve. /// /// The area under the precision/recall curve (AUPRC) is a single number measuring the /// overall quality of the transform, that is independent of the choice made for precision /// vs. recall. Higher values indicate that you have a more attractive precision vs. recall /// tradeoff. /// /// /// /// For more information, see Precision /// and recall in Wikipedia. /// /// [AWSProperty(Min=0, Max=1)] public double AreaUnderPRCurve { get { return this._areaUnderPRCurve.GetValueOrDefault(); } set { this._areaUnderPRCurve = value; } } // Check to see if AreaUnderPRCurve property is set internal bool IsSetAreaUnderPRCurve() { return this._areaUnderPRCurve.HasValue; } /// /// Gets and sets the property ColumnImportances. /// /// A list of ColumnImportance structures containing column importance metrics, /// sorted in order of descending importance. /// /// [AWSProperty(Min=0, Max=100)] public List ColumnImportances { get { return this._columnImportances; } set { this._columnImportances = value; } } // Check to see if ColumnImportances property is set internal bool IsSetColumnImportances() { return this._columnImportances != null && this._columnImportances.Count > 0; } /// /// Gets and sets the property ConfusionMatrix. /// /// The confusion matrix shows you what your transform is predicting accurately and what /// types of errors it is making. /// /// /// /// For more information, see Confusion /// matrix in Wikipedia. /// /// public ConfusionMatrix ConfusionMatrix { get { return this._confusionMatrix; } set { this._confusionMatrix = value; } } // Check to see if ConfusionMatrix property is set internal bool IsSetConfusionMatrix() { return this._confusionMatrix != null; } /// /// Gets and sets the property F1. /// /// The maximum F1 metric indicates the transform's accuracy between 0 and 1, where 1 /// is the best accuracy. /// /// /// /// For more information, see F1 score /// in Wikipedia. /// /// [AWSProperty(Min=0, Max=1)] public double F1 { get { return this._f1.GetValueOrDefault(); } set { this._f1 = value; } } // Check to see if F1 property is set internal bool IsSetF1() { return this._f1.HasValue; } /// /// Gets and sets the property Precision. /// /// The precision metric indicates when often your transform is correct when it predicts /// a match. Specifically, it measures how well the transform finds true positives from /// the total true positives possible. /// /// /// /// For more information, see Precision /// and recall in Wikipedia. /// /// [AWSProperty(Min=0, Max=1)] public double Precision { get { return this._precision.GetValueOrDefault(); } set { this._precision = value; } } // Check to see if Precision property is set internal bool IsSetPrecision() { return this._precision.HasValue; } /// /// Gets and sets the property Recall. /// /// The recall metric indicates that for an actual match, how often your transform predicts /// the match. Specifically, it measures how well the transform finds true positives from /// the total records in the source data. /// /// /// /// For more information, see Precision /// and recall in Wikipedia. /// /// [AWSProperty(Min=0, Max=1)] public double Recall { get { return this._recall.GetValueOrDefault(); } set { this._recall = value; } } // Check to see if Recall property is set internal bool IsSetRecall() { return this._recall.HasValue; } } }