@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.
The following is an example of how you specify a FeaturizationMethod
object.
{
"FeaturizationMethodName": "filling",
"FeaturizationMethodParameters": {"aggregation": "sum", "middlefill": "zero", "backfill": "zero"}
}
Constructor and Description |
---|
FeaturizationMethod() |
Modifier and Type | Method and Description |
---|---|
FeaturizationMethod |
addFeaturizationMethodParametersEntry(String key,
String value)
Add a single FeaturizationMethodParameters entry
|
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), which are a map of override parameters.
|
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), which are a map of override parameters.
|
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), which are a map of override parameters.
|
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), which are a map of override parameters. Specify these parameters to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
, max
frontfill
: none
middlefill
: zero, nan
(not a number), value
, median
,
mean
, min
, max
backfill
: zero, nan
, value
, median
, mean
,
min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the value in
a corresponding _value
parameter. For example, to set backfilling to a value of 2, include the
following: "backfill": "value"
and "backfill_value":"2"
.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
,
max
frontfill
: none
middlefill
: zero, nan
(not a number), value
,
median
, mean
, min
, max
backfill
: zero, nan
, value
, median
,
mean
, min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the
value in a corresponding _value
parameter. For example, to set backfilling to a value of 2,
include the following: "backfill": "value"
and "backfill_value":"2"
.
public void setFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
, max
frontfill
: none
middlefill
: zero, nan
(not a number), value
, median
,
mean
, min
, max
backfill
: zero, nan
, value
, median
, mean
,
min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the value in
a corresponding _value
parameter. For example, to set backfilling to a value of 2, include the
following: "backfill": "value"
and "backfill_value":"2"
.
featurizationMethodParameters
- The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters
to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
,
max
frontfill
: none
middlefill
: zero, nan
(not a number), value
,
median
, mean
, min
, max
backfill
: zero, nan
, value
, median
,
mean
, min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the
value in a corresponding _value
parameter. For example, to set backfilling to a value of 2,
include the following: "backfill": "value"
and "backfill_value":"2"
.
public FeaturizationMethod withFeaturizationMethodParameters(Map<String,String> featurizationMethodParameters)
The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
, max
frontfill
: none
middlefill
: zero, nan
(not a number), value
, median
,
mean
, min
, max
backfill
: zero, nan
, value
, median
, mean
,
min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the value in
a corresponding _value
parameter. For example, to set backfilling to a value of 2, include the
following: "backfill": "value"
and "backfill_value":"2"
.
featurizationMethodParameters
- The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters
to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
aggregation
: sum, avg
, first
, min
,
max
frontfill
: none
middlefill
: zero, nan
(not a number), value
,
median
, mean
, min
, max
backfill
: zero, nan
, value
, median
,
mean
, min
, max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to value
and define the
value in a corresponding _value
parameter. For example, to set backfilling to a value of 2,
include the following: "backfill": "value"
and "backfill_value":"2"
.
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.