goodfeli/pylearn — comment on commit 6d78a9d1030b9a105504ad52cb22fb2dafb742a0
File: pylearn2/linear/conv2d.py line 1
By dwf:

On Wed, Feb 29, 2012 at 01:25:35PM -0800, goodfeli wrote:
> What rule is this an exception to? Everywhere else that we use a letter as
> an abbreviation, we make the letter capital.

The rule that caps are reserved for class names (and constants), function
names are lowercase. At least that's the pep8 naming convention.

> (RBM, CAE, etc) I did change the filename though because we have been keeping filenames lower case so far (rbm.py).

True of RBM, but I'd argue that that's because it's a class name. (there's no
CAE class, it's ContractiveAutoencoder, mainly because CAE is in far less
mainstream usage than RBM and the C is potentially overloadable,
"convolutional" or some other variant we haven't thought of, whereas someone
coining another "R____ Boltzmann Machine" would have decades of literature to
fight).