tf_agents.bandits.policies.constraints.compute_feasibility_probability
Stay organized with collections
Save and categorize content based on your preferences.
Helper function to compute the action feasibility probability.
tf_agents.bandits.policies.constraints.compute_feasibility_probability(
observation: tf_agents.typing.types.NestedTensor
,
constraints: Iterable[tf_agents.bandits.policies.constraints.BaseConstraint
],
batch_size: tf_agents.typing.types.Int
,
num_actions: int,
action_mask: Optional[types.Tensor] = None
) -> tf_agents.typing.types.Float
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.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf_agents.bandits.policies.constraints.compute_feasibility_probability\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/bandits/policies/constraints.py#L557-L572) |\n\nHelper function to compute the action feasibility probability. \n\n tf_agents.bandits.policies.constraints.compute_feasibility_probability(\n observation: ../../../../tf_agents/typing/types/NestedTensor,\n constraints: Iterable[../../../../tf_agents/bandits/policies/constraints/BaseConstraint],\n batch_size: ../../../../tf_agents/typing/types/Int,\n num_actions: int,\n action_mask: Optional[types.Tensor] = None\n ) -\u003e ../../../../tf_agents/typing/types/Float"]]