Struct rusoto_forecast::FeaturizationMethod
source · [−]pub struct FeaturizationMethod {
pub featurization_method_name: String,
pub featurization_method_parameters: Option<HashMap<String, String>>,
}
Expand description
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"}
}
Fields
featurization_method_name: String
The name of the method. The "filling" method is the only supported method.
featurization_method_parameters: Option<HashMap<String, String>>
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"
.
Trait Implementations
sourceimpl Clone for FeaturizationMethod
impl Clone for FeaturizationMethod
sourcefn clone(&self) -> FeaturizationMethod
fn clone(&self) -> FeaturizationMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FeaturizationMethod
impl Debug for FeaturizationMethod
sourceimpl Default for FeaturizationMethod
impl Default for FeaturizationMethod
sourcefn default() -> FeaturizationMethod
fn default() -> FeaturizationMethod
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FeaturizationMethod
impl<'de> Deserialize<'de> for FeaturizationMethod
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FeaturizationMethod> for FeaturizationMethod
impl PartialEq<FeaturizationMethod> for FeaturizationMethod
sourcefn eq(&self, other: &FeaturizationMethod) -> bool
fn eq(&self, other: &FeaturizationMethod) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FeaturizationMethod) -> bool
fn ne(&self, other: &FeaturizationMethod) -> bool
This method tests for !=
.
sourceimpl Serialize for FeaturizationMethod
impl Serialize for FeaturizationMethod
impl StructuralPartialEq for FeaturizationMethod
Auto Trait Implementations
impl RefUnwindSafe for FeaturizationMethod
impl Send for FeaturizationMethod
impl Sync for FeaturizationMethod
impl Unpin for FeaturizationMethod
impl UnwindSafe for FeaturizationMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more