tf_agents.policies.utils.set_bandit_policy_type
Stay organized with collections
Save and categorize content based on your preferences.
Sets the InfoFields.BANDIT_POLICY_TYPE on info to bandit_policy_type.
tf_agents.policies.utils.set_bandit_policy_type(
info: Optional[Union[tf_agents.policies.utils.PolicyInfo
, tf_agents.policies.utils.PerArmPolicyInfo
]],
bandit_policy_type: tf_agents.typing.types.Tensor
) -> Union[tf_agents.policies.utils.PolicyInfo
, tf_agents.policies.utils.PerArmPolicyInfo
]
If policy info
does not support InfoFields.BANDIT_POLICY_TYPE, this method
returns info
as-is (without any modification).
Args |
info
|
Policy info on which to set bandit policy type.
|
bandit_policy_type
|
Tensor containing BanditPolicyType enums or TensorSpec
from create_bandit_policy_type_tensor_spec() .
|
Returns |
Policy info with modified field (if possible).
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]