update_retraining_scheduler
¶
update_retraining_scheduler(
model_name: ModelName,
*,
config_overrides: Optional[LookoutEquipmentClientConfig] = 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
>>> 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/lookout_equipment.py
3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 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 | |