Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Introducing automatic training for solutions in Amazon Personalize

    Introducing automatic training for solutions in Amazon Personalize

    April 19, 2024

    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.

    Solution overview

    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.

    Prerequisites

    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.

    Create a solution

    To set up automatic training, complete the following steps:

    On the Amazon Personalize console, create a new solution.
    Specify a name for your solution, choose the type of solution you want to create, and choose your recipe.
    Optionally, add any tags. For more information about tagging Amazon Personalize resources, see Tagging Amazon Personalize resources.
    To use automatic training, in the Automatic training section, select Turn on and specify your training frequency.

    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.

    If your recipe generates item recommendations or user segments, optionally use the Columns for training section to choose the columns Amazon Personalize considers when training solution versions.
    In the Hyperparameter configuration section, optionally configure any hyperparameter options based on your recipe and business needs.
    Provide any additional configurations, then choose Next.

    Review the solution details and confirm that your automatic training is configured as expected.
    Choose Create solution.

    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:

    import boto3
    personalize = boto3.client(‘personalize’)

    solution_config = {
    “autoTrainingConfig”: {
    “schedulingExpression”: “rate(3 days)”
    }
    }

    recipe = “arn:aws:personalize:::recipe/aws-similar-items”
    name = “test_automatic_training”
    response = personalize.create_solution(name=name, recipeArn=recipe_arn, datasetGroupArn=dataset_group_arn,
    performAutoTraining=True, solutionConfig=solution_config)

    print(response[‘solutionArn’])
    solution_arn = response[‘solutionArn’])

    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:

    response = personalize.describe_solution(solutionArn=solution_arn)
    print(response)

    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:

    response = personalize.list_solution_versions(solutionArn=solution_arn)[‘solutionVersions’]
    print(“List Solution Version responsen”)
    for val in response:
    print(f”SolutionVersion: {val}”)
    print(“n”)

    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.

    Create a campaign

    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:

    On the Amazon Personalize console, create a new campaign.
    Specify a name for your campaign.
    Choose the solution you just created.
    Select Automatically use the latest solution version.
    Set the minimum provisioned transactions per second.

    Create your campaign.

    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.

    campaign_config = {
    “syncWithLatestSolutionVersion”: True
    }
    resource_name = “test_campaign_sync”
    solution_version_arn = “arn:aws:personalize:<region>:<accountId>:solution/<solution_name>/$LATEST”
    response = personalize.create_campaign(name=resource_name, solutionVersionArn=solution_version_arn, campaignConfig=campaign_config)
    campaign_arn = response[‘campaignArn’]
    print(campaign_arn)

    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:

    response = personalize.describe_campaign(campaignArn=campaign_arn)
    Print(response)

    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.

    Conclusion

    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.

    About the authors

    Ba’Carri Johnson is a Sr. Technical Product Manager working with AWS AI/ML on the Amazon Personalize team. With a background in computer science and strategy, she is passionate about product innovation. In her spare time, she enjoys traveling and exploring the great outdoors.

    Ajay Venkatakrishnan is a Software Development Engineer on the Amazon Personalize team. In his spare time, he enjoys writing and playing soccer.

    Pranesh Anubhav is a Senior Software Engineer for Amazon Personalize. He is passionate about designing machine learning systems to serve customers at scale. Outside of his work, he loves playing soccer and is an avid follower of Real Madrid.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleEnhancing AI Validation with Causal Chambers: Bridging Data Gaps in Machine Learning and Statistics with Controlled Environments
    Next Article Network Optimization with AI: Exploring Predictive Maintenance and Traffic Management

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-47916 – Invision Community Themeeditor Remote Code Execution

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Windows 11 hidden toggle reveals how to turn on or off Administrator protection

    Development

    CVE-2025-4032 – InclusionAI AWorld Os Command Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Amazon Appstore will be effectively discontinued on Windows 11

    Operating Systems

    The Website Editing Checklist: Everything You Need to Consider

    Development

    Highlights

    News & Updates

    Xbox Indie Hub Ceros Build 2025 03

    March 19, 2025

    Xbox Indie Hub Ceros Build 2025 03 Source: Read More / Windows Central

    NSO Group Fined $168M for Targeting 1,400 WhatsApp Users With Pegasus Spyware

    May 14, 2025

    Dynamic Page Updates with Laravel Blade Fragments

    December 20, 2024

    Supporting the next generation of developers

    January 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.