Class: Aws::ForecastService::Types::FeaturizationMethod

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb

Overview

Note:

When making an API call, you may pass FeaturizationMethod data as a hash:

{
  featurization_method_name: "filling", # required, accepts filling
  featurization_method_parameters: {
    "ParameterKey" => "ParameterValue",
  },
}

Provides information about the method that featurizes (transforms) a dataset field. The method is part of the FeaturizationPipeline of the Featurization object. If you don't specify FeaturizationMethodParameters, Amazon Forecast uses default parameters.

The following is an example of how you specify a FeaturizationMethod object.

\{

"FeaturizationMethodName": "filling",

"FeaturizationMethodParameters": \{"aggregation": "avg", "backfill": "nan"\}

\}

Instance Attribute Summary collapse

Instance Attribute Details

#featurization_method_nameString

The name of the method. The "filling" method is the only supported method.

Returns:

  • (String)


1854
1855
1856
1857
1858
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 1854

class FeaturizationMethod < Struct.new(
  :featurization_method_name,
  :featurization_method_parameters)
  include Aws::Structure
end

#featurization_method_parametersHash<String,String>

The method parameters (key-value pairs). Specify these parameters to override the default values. The following list shows the parameters and their valid values. Bold signifies the default value.

  • aggregation: sum, avg, first, min, max

  • frontfill: none

  • middlefill: zero, nan (not a number)

  • backfill: zero, nan

Returns:

  • (Hash<String,String>)


1854
1855
1856
1857
1858
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 1854

class FeaturizationMethod < Struct.new(
  :featurization_method_name,
  :featurization_method_parameters)
  include Aws::Structure
end