Amazon Personalize is excited to announce automatic training for solutions. Solution training is fundamental to maintain the effectiveness of a model and make sure recommendations align with users’ evolving behaviors and preferences. As data patterns and trends change over time, retraining the solution with the latest relevant data enables the model to learn and adapt, enhancing its predictive accuracy. Automatic training generates a new solution version, mitigating model drift and keeping recommendations relevant and tailored to end-users’ current behaviors while including the newest items. Ultimately, automatic training provides a more personalized and engaging experience that adapts to changing preferences.
Amazon Personalize accelerates your digital transformation with machine learning (ML), making it effortless to integrate personalized recommendations into existing websites, applications, email marketing systems, and more. Amazon Personalize enables developers to quickly implement a customized personalization engine, without requiring ML expertise. Amazon Personalize provisions the necessary infrastructure and manages the entire ML pipeline, including processing the data, identifying features, using the appropriate algorithms, and training, optimizing, and hosting the customized models based on your data. All your data is encrypted to be private and secure.
In this post, we guide you through the process of configuring automatic training, so your solutions and recommendations maintain their accuracy and relevance.
A solution refers to the combination of an Amazon Personalize recipe, customized parameters, and one or more solution versions (trained models). When you create a custom solution, you specify a recipe matching your use case and configure training parameters. For this post, you configure automatic training in the training parameters.
To enable automatic training for your solutions, you first need to set up Amazon Personalize resources. Start by creating a dataset group, schemas, and datasets representing your items, interactions, and user data. For instructions, refer to Getting Started (console) or Getting Started (AWS CLI).
After you finish importing your data, you are ready to create a solution.
To set up automatic training, complete the following steps:
Automatic training is enabled by default to train one time every 7 days. You can configure the training cadence to suit your business needs, ranging from one time every 1–30 days.
Amazon Personalize will automatically create your first solution version. A solution version refers to a trained ML model. When a solution version is created for the solution, Amazon Personalize trains the model backing the solution version based on the recipe and training configuration. It can take up to 1 hour for the solution version creation to start.
The following is sample code for creating a solution with automatic training using the AWS SDK:
After a solution is created, you can confirm whether automatic training is enabled on the solution details page.
You can also use the following sample code to confirm via the AWS SDK that automatic training is enabled:
Your response will contain the fields performAutoTraining
and autoTrainingConfig
, displaying the values you set in the CreateSolution
call.
On the solution details page, you will also see the solution versions that are created automatically. The Training type column specifies whether the solution version was created manually or automatically.
You can also use the following sample code to return a list of solution versions for the given solution:
Your response will contain the field trainingType
, which specifies whether the solution version was created manually or automatically.
When your solution version is ready, you can create a campaign for your solution version.
A campaign deploys a solution version (trained model) to generate real-time recommendations. With Amazon Personalize, you can streamline your workflow and automate the deployment of the latest solution version to campaigns via automatic syncing. To set up auto sync, complete the following steps:
The campaign is ready when its status is ACTIVE
.
The following is sample code for creating a campaign with syncWithLatestSolutionVersion
set to true
using the AWS SDK. You must also append the suffix $LATEST
to the solutionArn
in solutionVersionArn
when you set syncWithLatestSolutionVersion
to true
.
On the campaign details page, you can see whether the campaign selected has auto sync enabled. When enabled, your campaign will automatically update to use the most recent solution version, whether it was automatically or manually created.
Use the following sample code to confirm via the AWS SDK that syncWithLatestSolutionVersion
is enabled:
Your response will contain the field syncWithLatestSolutionVersion
under campaignConfig
, displaying the value you set in the CreateCampaign
call.
You can enable or disable the option to automatically use the latest solution version on the Amazon Personalize console after a campaign is created by updating your campaign. Similarly, you can enable or disable syncWithLatestSolutionVersion
with UpdateCampaign
using the AWS SDK.
With automatic training, you can mitigate model drift and maintain recommendation relevance by streamlining your workflow and automating the deployment of the latest solution version in Amazon Personalize.
For more information about optimizing your user experience with Amazon Personalize, see the Amazon Personalize Developer Guide.
TL;DR A conversation with 4o about the potential demise of companies like Anthropic. As artificial…
Whether a company begins with a proof-of-concept or live deployment, they should start small, test…
Digital tools are not always superior. Here are some WIRED-tested agendas and notebooks to keep…
Machine learning (ML) models are built upon data.
Editor’s note: This is the second post in a series that explores a range of…
David J. Berg*, David Casler^, Romain Cledat*, Qian Huang*, Rui Lin*, Nissan Pow*, Nurcan Sonmez*,…