RSVP for your your local TensorFlow Everywhere event today!

tf_agents.bandits.policies.constraints.BaseConstraint

Abstract base class for representing constraints.

The constraint class provides feasibility computation functionality for computing the probability of actions being feasible.

time_step_spec A TimeStep spec of the expected time_steps.
action_spec A nest of BoundedTensorSpec representing the actions.
name Python str name of this constraint.

Methods

__call__

View source

Returns the probability of input actions being feasible.