scikit-learn 1.0.2 Other versions
Please cite us if you use the software.
sklearn.utils.extmath
sklearn.utils.extmath.density
Compute density of a sparse vector.
The sparse vector.
The density of w, between 0 and 1.
Classification of text documents using sparse features¶