/*
* 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 forecast-2018-06-26.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.ForecastService.Model
{
///
/// Provides metrics that are used to evaluate the performance of a predictor. This object
/// is part of the WindowSummary object.
///
public partial class Metrics
{
private double? _averageWeightedQuantileLoss;
private List _errorMetrics = new List();
private double? _rmse;
private List _weightedQuantileLosses = new List();
///
/// Gets and sets the property AverageWeightedQuantileLoss.
///
/// The average value of all weighted quantile losses.
///
///
public double AverageWeightedQuantileLoss
{
get { return this._averageWeightedQuantileLoss.GetValueOrDefault(); }
set { this._averageWeightedQuantileLoss = value; }
}
// Check to see if AverageWeightedQuantileLoss property is set
internal bool IsSetAverageWeightedQuantileLoss()
{
return this._averageWeightedQuantileLoss.HasValue;
}
///
/// Gets and sets the property ErrorMetrics.
///
/// Provides detailed error metrics for each forecast type. Metrics include root-mean
/// square-error (RMSE), mean absolute percentage error (MAPE), mean absolute scaled error
/// (MASE), and weighted average percentage error (WAPE).
///
///
public List ErrorMetrics
{
get { return this._errorMetrics; }
set { this._errorMetrics = value; }
}
// Check to see if ErrorMetrics property is set
internal bool IsSetErrorMetrics()
{
return this._errorMetrics != null && this._errorMetrics.Count > 0;
}
///
/// Gets and sets the property RMSE.
///
/// The root-mean-square error (RMSE).
///
///
[Obsolete("This property is deprecated, please refer to ErrorMetrics for both RMSE and WAPE")]
public double RMSE
{
get { return this._rmse.GetValueOrDefault(); }
set { this._rmse = value; }
}
// Check to see if RMSE property is set
internal bool IsSetRMSE()
{
return this._rmse.HasValue;
}
///
/// Gets and sets the property WeightedQuantileLosses.
///
/// An array of weighted quantile losses. Quantiles divide a probability distribution
/// into regions of equal probability. The distribution in this case is the loss function.
///
///
public List WeightedQuantileLosses
{
get { return this._weightedQuantileLosses; }
set { this._weightedQuantileLosses = value; }
}
// Check to see if WeightedQuantileLosses property is set
internal bool IsSetWeightedQuantileLosses()
{
return this._weightedQuantileLosses != null && this._weightedQuantileLosses.Count > 0;
}
}
}