Skip to content

List of classification methods #1111

Answered by MaxHalford
Boblancvich asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Boblancvich!

Alas we don't have a nice list in our docs. But you can do this:

import importlib
import inspect
from river import base

for submodule in importlib.import_module("river.api").__all__:

    def is_classifier(obj):
        return inspect.isclass(obj) and issubclass(obj, base.Classifier)

    for name, obj in inspect.getmembers(
        importlib.import_module(f"river.{submodule}"), is_classifier
    ):
        print(f"{submodule}.{name}")
base.Classifier
base.MiniBatchClassifier
compat.SKL2RiverClassifier
dummy.NoChangeClassifier
dummy.PriorClassifier
ensemble.ADWINBaggingClassifier
ensemble.AdaBoostClassifier
ensemble.AdaptiveRandomForestClassifier
ensemble.BaggingClassif…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@Dennis1989
Comment options

@Boblancvich
Comment options

@Boblancvich
Comment options

@MaxHalford
Comment options

@Boblancvich
Comment options

Answer selected by MaxHalford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants