SagemakerJobRuntimeService / Client / update_reward
update_reward¶
- SagemakerJobRuntimeService.Client.update_reward(**kwargs)¶
Updates the reward values for a trajectory and transitions it to reward-received status, signaling that it is eligible for processing. Call this operation after CompleteRollout to provide the computed reward scores.
See also: AWS API Documentation
Request Syntax
response = client.update_reward( JobArn='string', TrajectoryId='string', Rewards=[ 123.0, ], ClientToken='string' )
- Parameters:
JobArn (string) –
[REQUIRED]
The job ARN.
TrajectoryId (string) –
[REQUIRED]
The trajectory ID to update with reward values.
Rewards (list) –
[REQUIRED]
The list of reward values to assign to this trajectory. Provide one reward value per turn in the trajectory.
(float) –
ClientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
SagemakerJobRuntimeService.Client.exceptions.ResourceNotFoundExceptionSagemakerJobRuntimeService.Client.exceptions.InternalServiceErrorSagemakerJobRuntimeService.Client.exceptions.ValidationExceptionSagemakerJobRuntimeService.Client.exceptions.ConflictExceptionSagemakerJobRuntimeService.Client.exceptions.ServiceQuotaExceededExceptionSagemakerJobRuntimeService.Client.exceptions.ThrottlingExceptionSagemakerJobRuntimeService.Client.exceptions.AccessDeniedException