Number of epochs

Why the number of epochs has been deprecated in v2 release, what if I have to pass the entire dataset to train like in epochs?

This was changed long before v2 (https://github.com/OpenNMT/OpenNMT-py/pull/762) for multiple reasons. Why would you absolutely want on a per-epoch basis?