Interface RecommenderConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommenderConfig.Builder,,RecommenderConfig> SdkBuilder<RecommenderConfig.Builder,,RecommenderConfig> SdkPojo
- Enclosing class:
RecommenderConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault RecommenderConfig.BuildereventsConfig(Consumer<EventsConfig.Builder> eventsConfig) Configuration settings for how the recommender processes and uses events.eventsConfig(EventsConfig eventsConfig) Configuration settings for how the recommender processes and uses events.excludedColumns(Map<String, ? extends Collection<String>> excludedColumns) A map of dataset type to a list of column names to exclude from training.includedColumns(Map<String, ? extends Collection<String>> includedColumns) A map of dataset type to a list of column names to train on.default RecommenderConfig.BuilderinferenceConfig(Consumer<InferenceConfig.Builder> inferenceConfig) Configuration settings for how the recommender handles inference requests.inferenceConfig(InferenceConfig inferenceConfig) Configuration settings for how the recommender handles inference requests.trainingFrequency(Integer trainingFrequency) How often the recommender should retrain its model with new data.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventsConfig
Configuration settings for how the recommender processes and uses events.
- Parameters:
eventsConfig- Configuration settings for how the recommender processes and uses events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventsConfig
Configuration settings for how the recommender processes and uses events.
This is a convenience method that creates an instance of theEventsConfig.Builderavoiding the need to create one manually viaEventsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventsConfig(EventsConfig).- Parameters:
eventsConfig- a consumer that will call methods onEventsConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trainingFrequency
How often the recommender should retrain its model with new data. If set to 0, automatic retraining will not be enabled.
- Parameters:
trainingFrequency- How often the recommender should retrain its model with new data. If set to 0, automatic retraining will not be enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfig
Configuration settings for how the recommender handles inference requests.
- Parameters:
inferenceConfig- Configuration settings for how the recommender handles inference requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfig
default RecommenderConfig.Builder inferenceConfig(Consumer<InferenceConfig.Builder> inferenceConfig) Configuration settings for how the recommender handles inference requests.
This is a convenience method that creates an instance of theInferenceConfig.Builderavoiding the need to create one manually viaInferenceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfig(InferenceConfig).- Parameters:
inferenceConfig- a consumer that will call methods onInferenceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includedColumns
A map of dataset type to a list of column names to train on. The
_webAnalyticsand_catalogItemkeys are supported. The column names must be a subset of the columns defined in the recommender schema. If not specified, all columns in the schema are used for training. The following columns are always included in training and do not need to be specified:Item.Id,EventTimestamp, andEventTypefor_webAnalytics;Idfor_catalogItem. Mutually exclusive with ExcludedColumns — both cannot be specified in the same request.- Parameters:
includedColumns- A map of dataset type to a list of column names to train on. The_webAnalyticsand_catalogItemkeys are supported. The column names must be a subset of the columns defined in the recommender schema. If not specified, all columns in the schema are used for training. The following columns are always included in training and do not need to be specified:Item.Id,EventTimestamp, andEventTypefor_webAnalytics;Idfor_catalogItem. Mutually exclusive with ExcludedColumns — both cannot be specified in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedColumns
A map of dataset type to a list of column names to exclude from training. The
_webAnalyticsand_catalogItemkeys are supported. The column names must be valid columns defined in the recommender schema. All columns in the schema except the listed columns will be used for training. The following columns are mandatory and cannot be excluded:Item.Id,EventTimestamp, andEventTypefor_webAnalytics;Idfor_catalogItem. Mutually exclusive with IncludedColumns — both cannot be specified in the same request.- Parameters:
excludedColumns- A map of dataset type to a list of column names to exclude from training. The_webAnalyticsand_catalogItemkeys are supported. The column names must be valid columns defined in the recommender schema. All columns in the schema except the listed columns will be used for training. The following columns are mandatory and cannot be excluded:Item.Id,EventTimestamp, andEventTypefor_webAnalytics;Idfor_catalogItem. Mutually exclusive with IncludedColumns — both cannot be specified in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-