/* * 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 sagemaker-2017-07-24.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.SageMaker.Model { /// /// Transformations allowed on the dataset. Supported transformations are Filling /// and Aggregation. Filling specifies how to add values to /// missing values in the dataset. Aggregation defines how to aggregate data /// that does not align with forecast frequency. /// public partial class TimeSeriesTransformations { private Dictionary _aggregation = new Dictionary(); private Dictionary> _filling = new Dictionary>(); /// /// Gets and sets the property Aggregation. /// /// A key value pair defining the aggregation method for a column, where the key is the /// column name and the value is the aggregation method. /// /// /// /// The supported aggregation methods are sum (default), avg, /// first, min, max. /// /// /// /// Aggregation is only supported for the target column. /// /// /// [AWSProperty(Min=1, Max=50)] public Dictionary Aggregation { get { return this._aggregation; } set { this._aggregation = value; } } // Check to see if Aggregation property is set internal bool IsSetAggregation() { return this._aggregation != null && this._aggregation.Count > 0; } /// /// Gets and sets the property Filling. /// /// A key value pair defining the filling method for a column, where the key is the column /// name and the value is an object which defines the filling logic. You can specify multiple /// filling methods for a single column. /// /// /// /// The supported filling methods and their corresponding options are: /// ///
  • /// /// frontfill: none (Supported only for target column) /// ///
  • /// /// 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 the chosen /// filling method value (for example "backfill" : "value"), and define the /// filling value in an additional parameter prefixed with "_value". For example, to set /// backfill to a value of 2, you must include two parameters: /// "backfill": "value" and "backfill_value":"2". /// ///
[AWSProperty(Min=1, Max=50)] public Dictionary> Filling { get { return this._filling; } set { this._filling = value; } } // Check to see if Filling property is set internal bool IsSetFilling() { return this._filling != null && this._filling.Count > 0; } } }