scipy.maxentropy.sparsefeaturematrix

scipy.maxentropy.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.sample_wr

Next topic

scipy.maxentropy.sparsefeatures

This Page

Quick search