ray.rllib.offline.json_reader.JsonReader.read_all_files
ray.rllib.offline.json_reader.JsonReader.read_all_files#
- JsonReader.read_all_files() Union[ray.rllib.policy.sample_batch.SampleBatch, ray.rllib.policy.sample_batch.MultiAgentBatch] [source]#
Reads through all files and yields one SampleBatchType per line.
When reaching the end of the last file, will start from the beginning again.
- Yields
One SampleBatch or MultiAgentBatch per line in all input files.