update_retraining_scheduler
async
¶
update_retraining_scheduler(
model_name: ModelName,
*,
config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
retraining_start_date: Optional[Timestamp] = None,
retraining_frequency: Optional[RetrainingFrequency] = None,
lookback_window: Optional[LookbackWindow] = None,
promote_mode: Optional[ModelPromoteMode] = None,
) -> None
Updates a retraining scheduler.
Parameters:
-
model_name(ModelName) –The name of the model whose retraining scheduler you want to update.
-
retraining_start_date(Optional[Timestamp], default:None) –The start date for the retraining scheduler. Lookout for Equipment truncates the time you provide to the nearest UTC day.
-
retraining_frequency(Optional[RetrainingFrequency], default:None) –This parameter uses the ISO 8601 standard to set the frequency at which you want retraining to occur in terms of Years, Months, and/or Days (note: other parameters like Time are not currently supported). The minimum value is 30 days (P30D) and the maximum value is 1 year (P1Y). For example, the following values are valid:
-
P3M15D – Every 3 months and 15 days
-
P2M – Every 2 months
-
P150D – Every 150 days
-
-
lookback_window(Optional[LookbackWindow], default:None) –The number of past days of data that will be used for retraining.
-
promote_mode(Optional[ModelPromoteMode], default:None) –Indicates how the service will use new models. In
MANAGEDmode, new models will automatically be used for inference if they have better performance than the current model. InMANUALmode, the new models will not be used until they are manually activated.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have access to the resource.
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–Processing of the request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource requested could not be found. Verify the resource ID and retry your request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Updates a retraining scheduler
>>> await client.update_retraining_scheduler(model_name='sample-model', retraining_start_date='2024-01-01T00:00:00Z', retraining_frequency='P1Y')
Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 | |