Interface RecommenderConfig.Builder

  • Method Details

    • eventsConfig

      RecommenderConfig.Builder eventsConfig(EventsConfig 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

      default RecommenderConfig.Builder eventsConfig(Consumer<EventsConfig.Builder> eventsConfig)

      Configuration settings for how the recommender processes and uses events.

      This is a convenience method that creates an instance of the EventsConfig.Builder avoiding the need to create one manually via EventsConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to eventsConfig(EventsConfig).

      Parameters:
      eventsConfig - a consumer that will call methods on EventsConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trainingFrequency

      RecommenderConfig.Builder trainingFrequency(Integer trainingFrequency)

      How often the recommender should retrain its model with new data.

      Parameters:
      trainingFrequency - How often the recommender should retrain its model with new data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inferenceConfig

      RecommenderConfig.Builder inferenceConfig(InferenceConfig 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 the InferenceConfig.Builder avoiding the need to create one manually via InferenceConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to inferenceConfig(InferenceConfig).

      Parameters:
      inferenceConfig - a consumer that will call methods on InferenceConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • includedColumns

      RecommenderConfig.Builder includedColumns(Map<String,? extends Collection<String>> includedColumns)

      A map of dataset type to a list of column names to train on. 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 and do not need to be specified: Item.Id, ItemList[].Id, EventTimestamp, EventType, and EventValue.

      Parameters:
      includedColumns - A map of dataset type to a list of column names to train on. 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 and do not need to be specified: Item.Id, ItemList[].Id, EventTimestamp, EventType, and EventValue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.