sklearn.base.DensityMixin

class sklearn.base.DensityMixin[source]

Mixin class for all density estimators in scikit-learn.

Methods

score(self, X[, y])

Return the score of the model on the data X

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

score(self, X, y=None)[source]

Return the score of the model on the data X

Parameters
Xarray-like of shape (n_samples, n_features)
yIgnored

Not used, present for API consistency by convention.

Returns
scorefloat