yaoli/Theano — comment on commit 9109e410fb5cf127f266e0aad0db46da32850412
File: theano/sparse/sandbox/test_sp.py line 422
By nouiz:

In the file theano/sparse/tests/test_basic.py, there is a function random_lil(). Can you use it to generate your sparse test matrix? This make the code simpler.

You can call scipy.sparse.csc_matrix() on the output of random_lil. You can do:
from theano.sparse.tests.test_basic import random_lil