sklearn.utils.extmath.density

sklearn.utils.extmath.density(w, **kwargs)[source]

Compute density of a sparse vector

Return a value between 0 and 1

Examples using sklearn.utils.extmath.density