Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf_agents.specs.array_spec.sample_bounded_spec

View source on GitHub

Samples the given bounded spec.

tf_agents.specs.array_spec.sample_bounded_spec(
    spec, rng
)

Args:

  • spec: A BoundedSpec to sample.
  • rng: A numpy RandomState to use for the sampling.

Returns:

An np.array sample of the requested space.