neoml-lib / neoml

Machine learning framework for both deep learning and traditional algorithms
https://www.abbyy.com/neoml/
Apache License 2.0
764 stars 126 forks source link

[NeoML] IShuffledBatchGenerator in CProblemSourceLayer #1104

Open favorart opened 3 weeks ago

favorart commented 3 weeks ago

The SetProblem method of the CProblemSourceLayer class now has an optional shuffle flag, which when enabled causes the indexes in the batch to be randomly generated. At the same time, a new permutation is generated each epoch, meaning that duplicates in the batch are reduced to a minimum.