question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cluster "mixin" should be part of base class

See original GitHub issue

There 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TonyBagnallcommented, Jun 28, 2021

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

1reaction
fkiralycommented, Jun 28, 2021

So BaseClusterererer it is.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found