/*
* 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
{
///
///
///
/// This object belongs to the CreatePredictor operation. If you created your predictor
/// with CreateAutoPredictor, see AttributeConfig.
///
///
///
/// In a CreatePredictor operation, the specified algorithm trains a model using
/// the specified dataset group. You can optionally tell the operation to modify data
/// fields prior to training a model. These modifications are referred to as featurization.
///
///
///
/// You define featurization using the FeaturizationConfig
object. You specify
/// an array of transformations, one for each field that you want to featurize. You then
/// include the FeaturizationConfig
object in your CreatePredictor
/// request. Amazon Forecast applies the featurization to the TARGET_TIME_SERIES
/// and RELATED_TIME_SERIES
datasets before model training.
///
///
///
/// You can create multiple featurization configurations. For example, you might call
/// the CreatePredictor
operation twice by specifying different featurization
/// configurations.
///
///
public partial class FeaturizationConfig
{
private List _featurizations = new List();
private List _forecastDimensions = new List();
private string _forecastFrequency;
///
/// Gets and sets the property Featurizations.
///
/// An array of featurization (transformation) information for the fields of a dataset.
///
///
[AWSProperty(Min=1, Max=50)]
public List Featurizations
{
get { return this._featurizations; }
set { this._featurizations = value; }
}
// Check to see if Featurizations property is set
internal bool IsSetFeaturizations()
{
return this._featurizations != null && this._featurizations.Count > 0;
}
///
/// Gets and sets the property ForecastDimensions.
///
/// An array of dimension (field) names that specify how to group the generated forecast.
///
///
///
/// For example, suppose that you are generating a forecast for item sales across all
/// of your stores, and your dataset contains a store_id
field. If you want
/// the sales forecast for each item by store, you would specify store_id
/// as the dimension.
///
///
///
/// All forecast dimensions specified in the TARGET_TIME_SERIES
dataset don't
/// need to be specified in the CreatePredictor
request. All forecast dimensions
/// specified in the RELATED_TIME_SERIES
dataset must be specified in the
/// CreatePredictor
request.
///
///
[AWSProperty(Min=1, Max=10)]
public List ForecastDimensions
{
get { return this._forecastDimensions; }
set { this._forecastDimensions = value; }
}
// Check to see if ForecastDimensions property is set
internal bool IsSetForecastDimensions()
{
return this._forecastDimensions != null && this._forecastDimensions.Count > 0;
}
///
/// Gets and sets the property ForecastFrequency.
///
/// The frequency of predictions in a forecast.
///
///
///
/// Valid intervals are an integer followed by Y (Year), M (Month), W (Week), D (Day),
/// H (Hour), and min (Minute). For example, "1D" indicates every day and "15min" indicates
/// every 15 minutes. You cannot specify a value that would overlap with the next larger
/// frequency. That means, for example, you cannot specify a frequency of 60 minutes,
/// because that is equivalent to 1 hour. The valid values for each frequency are the
/// following:
///
/// -
///
/// Minute - 1-59
///
///
-
///
/// Hour - 1-23
///
///
-
///
/// Day - 1-6
///
///
-
///
/// Week - 1-4
///
///
-
///
/// Month - 1-11
///
///
-
///
/// Year - 1
///
///
///
/// Thus, if you want every other week forecasts, specify "2W". Or, if you want quarterly
/// forecasts, you specify "3M".
///
///
///
/// The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset frequency.
///
///
///
/// When a RELATED_TIME_SERIES dataset is provided, the frequency must be equal to the
/// TARGET_TIME_SERIES dataset frequency.
///
///
[AWSProperty(Required=true, Min=1, Max=5)]
public string ForecastFrequency
{
get { return this._forecastFrequency; }
set { this._forecastFrequency = value; }
}
// Check to see if ForecastFrequency property is set
internal bool IsSetForecastFrequency()
{
return this._forecastFrequency != null;
}
}
}