sklearn.utils.extmath.density
-
sklearn.utils.extmath.density(w, **kwargs)
[source] -
Compute density of a sparse vector.
- Parameters
-
-
warray-like
-
The sparse vector.
-
- Returns
-
- float
-
The density of w, between 0 and 1.
Examples using sklearn.utils.extmath.density
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.extmath.density.html