You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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 a method that featurizes (transforms) a dataset field. The method is part of the FeaturizationPipeline of the Featurization object. If FeaturizationMethodParameters isn't specified, Amazon Forecast uses default parameters.

For example:

\{

"FeaturizationMethodName": "filling",

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

\}

Instance Attribute Summary collapse

Instance Attribute Details

#featurization_method_nameString

The name of the method. In this release, "filling" is the only supported method.

Returns:

  • (String)


1771
1772
1773
1774
1775
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 1771

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 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>)


1771
1772
1773
1774
1775
# File 'gems/aws-sdk-forecastservice/lib/aws-sdk-forecastservice/types.rb', line 1771

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