/*
* 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 information about the method that featurizes (transforms) a dataset field.
/// The method is part of the FeaturizationPipeline
of the Featurization
/// object.
///
///
///
/// The following is an example of how you specify a FeaturizationMethod
/// object.
///
///
///
/// {
///
///
///
/// "FeaturizationMethodName": "filling",
///
///
///
/// "FeaturizationMethodParameters": {"aggregation": "sum", "middlefill": "zero",
/// "backfill": "zero"}
///
///
///
/// }
///
///
public partial class FeaturizationMethod
{
private FeaturizationMethodName _featurizationMethodName;
private Dictionary _featurizationMethodParameters = new Dictionary();
///
/// Gets and sets the property FeaturizationMethodName.
///
/// The name of the method. The "filling" method is the only supported method.
///
///
[AWSProperty(Required=true)]
public FeaturizationMethodName FeaturizationMethodName
{
get { return this._featurizationMethodName; }
set { this._featurizationMethodName = value; }
}
// Check to see if FeaturizationMethodName property is set
internal bool IsSetFeaturizationMethodName()
{
return this._featurizationMethodName != null;
}
///
/// Gets and sets the property FeaturizationMethodParameters.
///
/// The method parameters (key-value pairs), which are a map of override parameters. Specify
/// these parameters to override the default values. Related Time Series attributes do
/// not accept aggregation parameters.
///
///
///
/// The following list shows the parameters and their valid values for the "filling" featurization
/// method for a Target Time Series dataset. Bold signifies the default value.
///
/// -
///
///
aggregation
: sum, avg
, first
, min
,
/// max
///
/// -
///
///
frontfill
: none
///
/// -
///
///
middlefill
: zero, nan
(not a number), value
,
/// median
, mean
, min
, max
///
/// -
///
///
backfill
: zero, nan
, value
, median
,
/// mean
, min
, max
///
///
///
/// The following list shows the parameters and their valid values for a Related Time
/// Series featurization method (there are no defaults):
///
/// -
///
///
middlefill
: zero
, value
, median
,
/// mean
, min
, max
///
/// -
///
///
backfill
: zero
, value
, median
,
/// mean
, min
, max
///
/// -
///
///
futurefill
: zero
, value
, median
,
/// mean
, min
, max
///
///
///
/// To set a filling method to a specific value, set the fill parameter to value
/// and define the value in a corresponding _value
parameter. For example,
/// to set backfilling to a value of 2, include the following: "backfill": "value"
/// and "backfill_value":"2"
.
///
///
[AWSProperty(Min=1, Max=20)]
public Dictionary FeaturizationMethodParameters
{
get { return this._featurizationMethodParameters; }
set { this._featurizationMethodParameters = value; }
}
// Check to see if FeaturizationMethodParameters property is set
internal bool IsSetFeaturizationMethodParameters()
{
return this._featurizationMethodParameters != null && this._featurizationMethodParameters.Count > 0;
}
}
}