@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FeaturizationMethod extends Object implements Serializable, Cloneable, StructuredPojo
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"}
}
Constructor and Description |
---|
FeaturizationMethod() |
Modifier and Type | Method and Description |
---|---|
FeaturizationMethod |
addFeaturizationMethodParametersEntry(String key,
String value) |
FeaturizationMethod |
clearFeaturizationMethodParametersEntries()
Removes all the entries added into FeaturizationMethodParameters.
|
FeaturizationMethod |
clone() |
boolean |
equals(Object obj) |
String |
getFeaturizationMethodName()
The name of the method.
|
Map<String,String> |
getFeaturizationMethodParameters()
The method parameters (key-value pairs).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFeaturizationMethodName(String featurizationMethodName)
The name of the method.
|
void |
setFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
The method parameters (key-value pairs).
|
String |
toString()
Returns a string representation of this object.
|
FeaturizationMethod |
withFeaturizationMethodName(FeaturizationMethodName featurizationMethodName)
The name of the method.
|
FeaturizationMethod |
withFeaturizationMethodName(String featurizationMethodName)
The name of the method.
|
FeaturizationMethod |
withFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
The method parameters (key-value pairs).
|
public void setFeaturizationMethodName(String featurizationMethodName)
The name of the method. The "filling" method is the only supported method.
featurizationMethodName
- The name of the method. The "filling" method is the only supported method.FeaturizationMethodName
public String getFeaturizationMethodName()
The name of the method. The "filling" method is the only supported method.
FeaturizationMethodName
public FeaturizationMethod withFeaturizationMethodName(String featurizationMethodName)
The name of the method. The "filling" method is the only supported method.
featurizationMethodName
- The name of the method. The "filling" method is the only supported method.FeaturizationMethodName
public FeaturizationMethod withFeaturizationMethodName(FeaturizationMethodName featurizationMethodName)
The name of the method. The "filling" method is the only supported method.
featurizationMethodName
- The name of the method. The "filling" method is the only supported method.FeaturizationMethodName
public Map<String,String> getFeaturizationMethodParameters()
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
aggregation
: sum, avg
, first
, min
,
max
frontfill
: none
middlefill
: zero, nan
(not a number)
backfill
: zero, nan
public void setFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
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
featurizationMethodParameters
- 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
public FeaturizationMethod withFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
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
featurizationMethodParameters
- 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
public FeaturizationMethod addFeaturizationMethodParametersEntry(String key, String value)
public FeaturizationMethod clearFeaturizationMethodParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public FeaturizationMethod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.