dnouri / cuda-convnet

My fork of Alex Krizhevsky's cuda-convnet from 2013 where I added dropout, among other features.
http://code.google.com/p/cuda-convnet/
253 stars 147 forks source link

Where to put CONVNET_RANDOM_SEED ? #1

Closed teknosains closed 10 years ago

teknosains commented 10 years ago

Halo daniel, im a newbie

Where can i put CONVNET_RANDOM_SEED in the code ? and what's that actually for ?

Thanks

dnouri commented 10 years ago

It's an environment variable, thus you can set it when you run the command:

CONVNET_RANDOM_SEED=42 convnet.py ...

The purpose is that when you run this command twice, your weights will have been initialized the same, and you'll get the same results. (Weights are usually initialized from a random distribution.)