keras-team / keras-preprocessing

Utilities for working with image data, text data, and sequence data.
Other
1.02k stars 444 forks source link

Add negative subscripts support to TimeseriesGenerator and Iterator. #349

Open OrigamiDream opened 2 years ago

OrigamiDream commented 2 years ago

Summary

Python supports negative subscripting for all subscriptable types as standard. TimeseriesGenerator and Iterator override __getitem__ function but does not support negative subscripts.

Related Issues

N/A

PR Overview