Struct aws_sdk_forecast::types::builders::FeaturizationBuilder
source · #[non_exhaustive]pub struct FeaturizationBuilder { /* private fields */ }
Expand description
A builder for Featurization
.
Implementations§
source§impl FeaturizationBuilder
impl FeaturizationBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the schema attribute that specifies the data field to be featurized. Amazon Forecast supports the target field of the TARGET_TIME_SERIES
and the RELATED_TIME_SERIES
datasets. For example, for the RETAIL
domain, the target is demand
, and for the CUSTOM
domain, the target is target_value
. For more information, see howitworks-missing-values
.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the schema attribute that specifies the data field to be featurized. Amazon Forecast supports the target field of the TARGET_TIME_SERIES
and the RELATED_TIME_SERIES
datasets. For example, for the RETAIL
domain, the target is demand
, and for the CUSTOM
domain, the target is target_value
. For more information, see howitworks-missing-values
.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of the schema attribute that specifies the data field to be featurized. Amazon Forecast supports the target field of the TARGET_TIME_SERIES
and the RELATED_TIME_SERIES
datasets. For example, for the RETAIL
domain, the target is demand
, and for the CUSTOM
domain, the target is target_value
. For more information, see howitworks-missing-values
.
sourcepub fn featurization_pipeline(self, input: FeaturizationMethod) -> Self
pub fn featurization_pipeline(self, input: FeaturizationMethod) -> Self
Appends an item to featurization_pipeline
.
To override the contents of this collection use set_featurization_pipeline
.
An array of one FeaturizationMethod
object that specifies the feature transformation method.
sourcepub fn set_featurization_pipeline(
self,
input: Option<Vec<FeaturizationMethod>>
) -> Self
pub fn set_featurization_pipeline( self, input: Option<Vec<FeaturizationMethod>> ) -> Self
An array of one FeaturizationMethod
object that specifies the feature transformation method.
sourcepub fn get_featurization_pipeline(&self) -> &Option<Vec<FeaturizationMethod>>
pub fn get_featurization_pipeline(&self) -> &Option<Vec<FeaturizationMethod>>
An array of one FeaturizationMethod
object that specifies the feature transformation method.
sourcepub fn build(self) -> Result<Featurization, BuildError>
pub fn build(self) -> Result<Featurization, BuildError>
Consumes the builder and constructs a Featurization
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FeaturizationBuilder
impl Clone for FeaturizationBuilder
source§fn clone(&self) -> FeaturizationBuilder
fn clone(&self) -> FeaturizationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeaturizationBuilder
impl Debug for FeaturizationBuilder
source§impl Default for FeaturizationBuilder
impl Default for FeaturizationBuilder
source§fn default() -> FeaturizationBuilder
fn default() -> FeaturizationBuilder
source§impl PartialEq for FeaturizationBuilder
impl PartialEq for FeaturizationBuilder
source§fn eq(&self, other: &FeaturizationBuilder) -> bool
fn eq(&self, other: &FeaturizationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FeaturizationBuilder
Auto Trait Implementations§
impl Freeze for FeaturizationBuilder
impl RefUnwindSafe for FeaturizationBuilder
impl Send for FeaturizationBuilder
impl Sync for FeaturizationBuilder
impl Unpin for FeaturizationBuilder
impl UnwindSafe for FeaturizationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more