# Module: tf_agents.bandits.environments.dataset_utilities

<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/dataset_utilities.py) |

Helper functions for the environments that load datasets.

## Functions

[`convert_covertype_dataset(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/environments/dataset_utilities/convert_covertype_dataset)

[`convert_mushroom_csv_to_tf_dataset(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/environments/dataset_utilities/convert_mushroom_csv_to_tf_dataset): Converts the mushroom CSV dataset into a `tf.Dataset`.

[`load_movielens_data(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/environments/dataset_utilities/load_movielens_data): Loads the movielens data and returns the ratings matrix.

[`mushroom_reward_distribution(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/environments/dataset_utilities/mushroom_reward_distribution): Creates a distribution for rewards for the mushroom environment.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| MOVIELENS_NUM_MOVIES | `1682` |
| MOVIELENS_NUM_USERS | `943` |
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />