Missing type support in unique_labels() utility
See original GitHub issueDescription
sklearn.utils.multiclass
unique_labels()
does not yet allow "multiclass-multioutput"
input type for y
.
See this comment in the code: https://github.com/scikit-learn/scikit-learn/blob/3a48f0ab7cf75dea55f313da6b33f7b6772d28af/sklearn/utils/multiclass.py#L53
This type is used by multilabel classifiers such as sklearn.tree.DecisionTreeClassifier
.
https://github.com/scikit-learn/scikit-learn/blob/4bba21659c68d65b4555ea86751aac1fab9fd8e4/sklearn/tree/tree.py#L763
So I propose to add support for this. At first glance, it doesn’t appear to be difficult. Is there any reason not to to this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
internal compiler error: missing type [Go 1.18 Beta 2 ... - GitHub
Looks like some error is supressed where it shouldn't. package p func _() { len.Println() }.
Read more >java - Type is known, but method refers to missing type
the method myMethod(myType arg) refers to the missing type Point3D. However the class Point3D is known, I can create an object of this...
Read more >Event codes - IBM
0x003300a3 Missing an OAuth grant type. Explanation. The client must support, at a minimal, a valid OAuth grant type. OAuth grant type are...
Read more >phylobase: Base Package for Phylogenetic Structures and ...
Created by the phylo4d() function. Details. extractTree extracts just the phylogeny from a tree+data object. The phylogeny contains the topology ...
Read more >Oracle® Documaker - Utilities Reference
Use a MRGCHK list to add missing fonts to a font ... Here is a list of the types of AFP resource files...
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
Not a significant issue for me after all. Closing to reduce clutter. Thanks.
Detecting output types is really fragile 😕 would be nice if we could warn better… Or get rid of
multioutput multiclass
and make it less fragile 😉