Cluster "mixin" should be part of base class
See original GitHub issueThere is a ClusterMixin
in the newly merged clustering module which is quite weird.
The only thing it has is fit_predict
, but that should be a default functionality in clusterers which do have fit
and predict
anyway?
So, let’s just move this to the BaseClusterer
.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
sklearn.base.ClusterMixin — scikit-learn 1.2.0 documentation
Mixin class for all cluster estimators in scikit-learn. ... Perform clustering on X and returns cluster labels. Parameters: Xarray-like of shape ...
Read more >python - Is it possible to use an Abstract Base Class as a mixin ...
Ideally, I would like to have them both inherit from a base class, which passes them a variety of dict -like abilities, and...
Read more >sklearn.base — Ray 0.8.7 documentation
Source code for sklearn.base. """Base classes for all estimators. ... + "You should provide an instance of " + "scikit-learn estimator instead of...
Read more >Mixin and Custom Base Classes
Mixin and Custom Base Classes¶. A common need when using declarative is to share some functionality, such as a set of common columns,...
Read more >scikit-learn/base.py at main - GitHub
"""Mixin class for all transformers in scikit-learn. If :term:`get_feature_names_out` is defined, then `BaseEstimator` will. automatically ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
BaseClusterer it has to be, if we want to maintain equivalence of syntax. It looks horrible, but the thing that makes clusters is a clusterer
So
BaseClusterererer
it is.