This is documentation for an old release of Scikit-learn (version 0.21). Try the latest stable release (version 1.6) or development (unstable) versions.
This is documentation for an old release of Scikit-learn (version 0.21). Try the latest stable release (version 1.6) or development (unstable) versions.
-
class
sklearn.base.
DensityMixin
[source]
Mixin class for all density estimators in scikit-learn.
Methods
score (self, X[, y]) |
Returns 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]
Returns the score of the model on the data X
Parameters: |
- X : array-like, shape = (n_samples, n_features)
|
Returns: |
- score : float
|