amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

How do I perform A/B testing?

Open judytraj007 opened this issue 8 years ago • 2 comments

I'm trying to figure out how to perform A/B testing using AWS sagemaker. I understand setting the train_instance_count will distribute the training across two instances. But how do I specify the set the percentage of inference calls each model will handle and perform A/B testing?

judytraj007 avatar Mar 02 '18 07:03 judytraj007

Thanks, @Katniss394 . We don't currently have a detailed example of A|B testing (although it's a good suggestion to have one). At the moment, this isn't supported in the SageMaker Python SDK, so you'd need to use the AWS SDK. More detail can be found here. Essentially, you'd need to create an EndpointConfig with multiple ProductionVariants, where the InitialVariantWeight value controls the percentage of traffic that goes to each model.

djarpin avatar Mar 03 '18 00:03 djarpin

Thank you. Thats very heplful.

judytraj007 avatar Mar 05 '18 06:03 judytraj007