#[non_exhaustive]pub struct TrainingDataConfigBuilder { /* private fields */ }Expand description
A builder for TrainingDataConfig.
Implementations§
source§impl TrainingDataConfigBuilder
impl TrainingDataConfigBuilder
sourcepub fn excluded_dataset_columns(
self,
k: impl Into<String>,
v: Vec<String>
) -> Self
pub fn excluded_dataset_columns( self, k: impl Into<String>, v: Vec<String> ) -> Self
Adds a key-value pair to excluded_dataset_columns.
To override the contents of this collection use set_excluded_dataset_columns.
Specifies the columns to exclude from training. Each key is a dataset type, and each value is a list of columns. Exclude columns to control what data Amazon Personalize uses to generate recommendations.
For example, you might have a column that you want to use only to filter recommendations. You can exclude this column from training and Amazon Personalize considers it only when filtering.
sourcepub fn set_excluded_dataset_columns(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
pub fn set_excluded_dataset_columns( self, input: Option<HashMap<String, Vec<String>>> ) -> Self
Specifies the columns to exclude from training. Each key is a dataset type, and each value is a list of columns. Exclude columns to control what data Amazon Personalize uses to generate recommendations.
For example, you might have a column that you want to use only to filter recommendations. You can exclude this column from training and Amazon Personalize considers it only when filtering.
sourcepub fn get_excluded_dataset_columns(
&self
) -> &Option<HashMap<String, Vec<String>>>
pub fn get_excluded_dataset_columns( &self ) -> &Option<HashMap<String, Vec<String>>>
Specifies the columns to exclude from training. Each key is a dataset type, and each value is a list of columns. Exclude columns to control what data Amazon Personalize uses to generate recommendations.
For example, you might have a column that you want to use only to filter recommendations. You can exclude this column from training and Amazon Personalize considers it only when filtering.
sourcepub fn build(self) -> TrainingDataConfig
pub fn build(self) -> TrainingDataConfig
Consumes the builder and constructs a TrainingDataConfig.
Trait Implementations§
source§impl Clone for TrainingDataConfigBuilder
impl Clone for TrainingDataConfigBuilder
source§fn clone(&self) -> TrainingDataConfigBuilder
fn clone(&self) -> TrainingDataConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TrainingDataConfigBuilder
impl Debug for TrainingDataConfigBuilder
source§impl Default for TrainingDataConfigBuilder
impl Default for TrainingDataConfigBuilder
source§fn default() -> TrainingDataConfigBuilder
fn default() -> TrainingDataConfigBuilder
source§impl PartialEq for TrainingDataConfigBuilder
impl PartialEq for TrainingDataConfigBuilder
source§fn eq(&self, other: &TrainingDataConfigBuilder) -> bool
fn eq(&self, other: &TrainingDataConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TrainingDataConfigBuilder
Auto Trait Implementations§
impl Freeze for TrainingDataConfigBuilder
impl RefUnwindSafe for TrainingDataConfigBuilder
impl Send for TrainingDataConfigBuilder
impl Sync for TrainingDataConfigBuilder
impl Unpin for TrainingDataConfigBuilder
impl UnwindSafe for TrainingDataConfigBuilder
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