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.

Missing type support in unique_labels() utility

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pwellnercommented, Dec 12, 2017

Not a significant issue for me after all. Closing to reduce clutter. Thanks.

0reactions
amuellercommented, Dec 12, 2017

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 😉

Read more comments on GitHub >

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

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