smallest_boundary_value¶
-
safe_learning.
smallest_boundary_value
(fun, discretization)¶ Determine the smallest value of a function on its boundary.
Parameters: - fun : callable
A tensorflow function that we want to evaluate.
- discretization : instance of GridWorld
The discretization. If None, then the function is assumed to be defined on a discretization already.
Returns: - min_value : float
The smallest value on the boundary.