Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.base`.DensityMixin

class sklearn.base.DensityMixin

  Mixin class for all density estimators in scikit-learn.

  Methods

  `score`(X[, y]) | Return the score of the model on the data `X`.

  score(X, y=None)

    Return the score of the model on the data `X`.

    Parameters:
      X array-like of shape (n_samples, n_features)

        Test samples.

      y Ignored

        Not used, present for API consistency by convention.

    Returns:
      score float