Mixin class for all density estimators in scikit-learn.
This mixin defines the following functionality:
sets estimator type to "density_estimator"
through the estimator_type
tag;
score
method that default that do no-op.
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
Return the score of the model on the data X
.
Test samples.
Not used, present for API consistency by convention.
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