Skip to content

Multiclass #654

Answered by gbolmier
jmrichardson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jmrichardson 👋 Thanks for your interest in the library and reporting this error.

Unfortunately the documentation is outdated here, the base.BinaryClassifier and base.MultiClassifier have been deprecated in favor of a base.Classifier with a _multiclass property instead. Sorry for the inconvenience.

Nevertheless, python isinstance built-in method compares an object instance with a class so you can't pass the tree.hoeffding_adaptive_tree_classifier module to isinstance. Instead you want to pass an instantiated object:

isinstance(tree.HoeffdingAdaptiveTreeClassifier(), base.Classifier)

If your goal is to list all the river mutliclass classifiers, the following snippet should do the trick:

i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
2 participants