amazon-personalize-automated-retraining icon indicating copy to clipboard operation
amazon-personalize-automated-retraining copied to clipboard

Add example value for RetrainingRate

Open tomfotherby opened this issue 5 years ago • 2 comments

The README.md says:

RetrainingRate | Rate at which the Personalize should be retrained, defaults to 7 days if not set.

We were having trouble figuring out the format to use inside parameters.cfg. The following didn't work:

RetrainingRate=1 days RetrainingRate="1 days" RetrainingRate=1days RetrainingRate=rate(1 day) RetrainingRate="rate(1 day)"

It would be great to add an example format to the README.md.

tomfotherby avatar Sep 10 '20 14:09 tomfotherby

Hey,

I quickly tried to get it flying, issue seems to be with the spaces in the shell. I'll look deeper into this.

Syntax is rate(1 day) (full doc is here https://docs.aws.amazon.com/eventbridge/latest/userguide/scheduled-events.html)

Until then, you got two options to fix this:

  1. Replace the rate directly in CloudFormation: https://github.com/aws-samples/amazon-personalize-automated-retraining/blob/master/stack.template#L11
  2. Add the rate manually to the Makefile: https://github.com/aws-samples/amazon-personalize-automated-retraining/blob/master/Makefile#L16 e.g., --parameter-overrides "RetrainingRate=rate(1 day)" $$(cat parameters.cfg) \

let me know if that works for you. I'll look for a cleaner way to add it to the parameters.cfg

Till--H avatar Sep 10 '20 16:09 Till--H

@Till--H - Thanks for the workarounds :+1: Both are helpful

tomfotherby avatar Sep 10 '20 18:09 tomfotherby