Minor changes.
Merge branch 'master' into norb
pep8, added image_shape class parameter to datasets/norb.py
pep8 cleanup. datasets/dataset.py, datasets/dense_design_matrix.py and utils/__init__.py are now pep8-clean.
commit before switching branches
Coded up tests, need to pylint and run them.
commit before exploring earlier commits for the origin of the weird pylint error in utils/__init__.py
Committing before maybe changing *format_as() methods to support converting to/from sparse and non-sparse. This will also require changes to how those functions call np_validate() to sanity-check the input batch.
commit before switching branches
commit before attempting to implement a reshape() for SparseVariable
Commit before attempting to support VectorSpace.format_as(sparse_variable, composite_space).
minor fix
commit before removing format_as / np_format_as dichotomy. If people object to the API change, we can always trivially add it back in. But for now, the two functions are often implemented by duplicating long stretches of code. Better to have a single function with a single chain of logic, that internally switches on the type of the batch (theano symbol, numpy ndarray, or scipy.sparse array) selectively, only on lines that necessitate making such distinctions.
commit before pushing to desktop
commit before making get_expected_error recursive
simplified composite dtype treatement
New Spaces with dtypes now pass space/tests
Committing before trying to see if we can check for warnings by turning them into exceptions, as described here:
http://docs.python.org/2/library/warnings.html#testing-warnings
commit before pushing to desktop
(almost) merged with master. Will be completely merged when I clean up format_as/np_format_as, validate/np_validate. Doing that next.