@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) |
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.FeaturizationMethodNamepublic String getFeaturizationMethodName()
The name of the method. The "filling" method is the only supported method.
FeaturizationMethodNamepublic 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.FeaturizationMethodNamepublic 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.FeaturizationMethodNamepublic 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 ObjectObject.toString()public FeaturizationMethod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.