PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Randomize ParameterGroups #285

Closed peteschultz closed 5 years ago

peteschultz commented 5 years ago

This pull request adds an option to shuffle the order of the parameter groups once the params have been read in.

On the command line, add the option -shuffle <seed> where <seed> is a positive integer, used as the random seed for the shuffle. Adding -shuffle 0 specifies no shuffling; this is the default. If -shuffle appears on the command line, it must be followed by a number.

If you're using a config file to specify the params file etc., add the line `ShuffleParamGroups:' to the config file.

This option can be added to the system tests, by using the PV_SYSTEM_TEST_SHUFFLE variable in cmake.

Some bugs in PoolingDelivery and PointProbe were uncovered with this option. This pull request includes fixes for them as well.