Skip to content

recommend-hq train

The command for training the recommendation model.

recommend-hq train [OPTIONS]

Description

The recommend-hq train command trains the recommendation model. You can choose from different recipes and select the appropriate training mode.

Options

Option Description
-r, --recipes TEXT Choose one or more recipes separated by commas. Choose from user_personalization, similar_items, personalized_ranking. [required]
-t, --training-mode [init|update_solution_version|update_dataset_group] Select the training mode. [required]
--help Show help information and exit.

Training mode descriptions

Training mode Description
init Use only for the first training job of each recipe.
update_solution_version Use this when you have uploaded more data and want to update your solution version, which refers to a machine learning model.
update_dataset_group Use this when you want to reset the entire item interactions dataset. A new dataset group will be built, and the old one will be removed.

Examples

Train the recommendation model with specific recipes and training mode

recommend-hq train \
  --recipes user_personalization,similar_items \
  --training-mode init