# Module: tf_agents.bandits.environments.piecewise_bernoulli_py_environment

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/bandits/environments/piecewise_bernoulli_py_environment.py) |

Class implementation of Python Bernoulli Bandit environment.

## Classes

[`class PiecewiseBernoulliPyEnvironment`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/environments/piecewise_bernoulli_py_environment/PiecewiseBernoulliPyEnvironment): Implements piecewise stationary finite-armed Bernoulli Bandits.