scipy.maxentropy.maxentutils.sparsefeaturematrix

scipy.maxentropy.maxentutils.sparsefeaturematrix(f, sample, format='csc_matrix')

Returns an (m x n) sparse matrix of non-zero evaluations of the scalar or vector functions f_1,...,f_m in the list f at the points x_1,...,x_n in the sequence ‘sample’.

If format=’ll_mat’, the PySparse module (or a symlink to it) must be available in the Python site-packages/ directory. A trimmed-down version, patched for NumPy compatibility, is available in the SciPy sandbox/pysparse directory.

Previous topic

scipy.maxentropy.maxentutils.sample_wr

Next topic

scipy.maxentropy.maxentutils.sparsefeatures

This Page