A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scikit-learn.org/dev/developers/../api/../modules/generated/sklearn.base.DensityMixin.html below:

DensityMixin — scikit-learn 1.8.dev0 documentation

DensityMixin#
class sklearn.base.DensityMixin[source]#

Mixin class for all density estimators in scikit-learn.

This mixin defines the following functionality:

Examples

>>> from sklearn.base import DensityMixin
>>> class MyEstimator(DensityMixin):
...     def fit(self, X, y=None):
...         self.is_fitted_ = True
...         return self
>>> estimator = MyEstimator()
>>> hasattr(estimator, "score")
True
score(X, y=None)[source]#

Return the score of the model on the data X.

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

Test samples.

yIgnored

Not used, present for API consistency by convention.

Returns:
scorefloat

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4