#[non_exhaustive]pub struct RecommenderConfigBuilder { /* private fields */ }
Expand description
A builder for RecommenderConfig
.
Implementations§
source§impl RecommenderConfigBuilder
impl RecommenderConfigBuilder
sourcepub fn item_exploration_config(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn item_exploration_config( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to item_exploration_config
.
To override the contents of this collection use set_item_exploration_config
.
Specifies the exploration configuration hyperparameters, including explorationWeight
and explorationItemAgeCutOff
, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig
data only if your recommenders generate personalized recommendations for a user (not popular items or similar items).
sourcepub fn set_item_exploration_config(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_item_exploration_config( self, input: Option<HashMap<String, String>> ) -> Self
Specifies the exploration configuration hyperparameters, including explorationWeight
and explorationItemAgeCutOff
, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig
data only if your recommenders generate personalized recommendations for a user (not popular items or similar items).
sourcepub fn get_item_exploration_config(&self) -> &Option<HashMap<String, String>>
pub fn get_item_exploration_config(&self) -> &Option<HashMap<String, String>>
Specifies the exploration configuration hyperparameters, including explorationWeight
and explorationItemAgeCutOff
, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig
data only if your recommenders generate personalized recommendations for a user (not popular items or similar items).
sourcepub fn min_recommendation_requests_per_second(self, input: i32) -> Self
pub fn min_recommendation_requests_per_second(self, input: i32) -> Self
Specifies the requested minimum provisioned recommendation requests per second that Amazon Personalize will support. A high minRecommendationRequestsPerSecond
will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond
as necessary.
sourcepub fn set_min_recommendation_requests_per_second(
self,
input: Option<i32>
) -> Self
pub fn set_min_recommendation_requests_per_second( self, input: Option<i32> ) -> Self
Specifies the requested minimum provisioned recommendation requests per second that Amazon Personalize will support. A high minRecommendationRequestsPerSecond
will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond
as necessary.
sourcepub fn get_min_recommendation_requests_per_second(&self) -> &Option<i32>
pub fn get_min_recommendation_requests_per_second(&self) -> &Option<i32>
Specifies the requested minimum provisioned recommendation requests per second that Amazon Personalize will support. A high minRecommendationRequestsPerSecond
will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond
(the default). Track your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond
as necessary.
sourcepub fn training_data_config(self, input: TrainingDataConfig) -> Self
pub fn training_data_config(self, input: TrainingDataConfig) -> Self
Specifies the training data configuration to use when creating a domain recommender.
sourcepub fn set_training_data_config(self, input: Option<TrainingDataConfig>) -> Self
pub fn set_training_data_config(self, input: Option<TrainingDataConfig>) -> Self
Specifies the training data configuration to use when creating a domain recommender.
sourcepub fn get_training_data_config(&self) -> &Option<TrainingDataConfig>
pub fn get_training_data_config(&self) -> &Option<TrainingDataConfig>
Specifies the training data configuration to use when creating a domain recommender.
sourcepub fn enable_metadata_with_recommendations(self, input: bool) -> Self
pub fn enable_metadata_with_recommendations(self, input: bool) -> Self
Whether metadata with recommendations is enabled for the recommender. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn set_enable_metadata_with_recommendations(
self,
input: Option<bool>
) -> Self
pub fn set_enable_metadata_with_recommendations( self, input: Option<bool> ) -> Self
Whether metadata with recommendations is enabled for the recommender. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn get_enable_metadata_with_recommendations(&self) -> &Option<bool>
pub fn get_enable_metadata_with_recommendations(&self) -> &Option<bool>
Whether metadata with recommendations is enabled for the recommender. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn build(self) -> RecommenderConfig
pub fn build(self) -> RecommenderConfig
Consumes the builder and constructs a RecommenderConfig
.
Trait Implementations§
source§impl Clone for RecommenderConfigBuilder
impl Clone for RecommenderConfigBuilder
source§fn clone(&self) -> RecommenderConfigBuilder
fn clone(&self) -> RecommenderConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommenderConfigBuilder
impl Debug for RecommenderConfigBuilder
source§impl Default for RecommenderConfigBuilder
impl Default for RecommenderConfigBuilder
source§fn default() -> RecommenderConfigBuilder
fn default() -> RecommenderConfigBuilder
source§impl PartialEq for RecommenderConfigBuilder
impl PartialEq for RecommenderConfigBuilder
source§fn eq(&self, other: &RecommenderConfigBuilder) -> bool
fn eq(&self, other: &RecommenderConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.