-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-output #196
Comments
@briandesilva, good catch. We're being a little sloppy with inheritance since we inherit from Elasticnet/Lasso but don't implement the multi-target versions. There's potentially ~3 ways to implement the selection part of the multi-target UoI versions of these models
For your use, does one of these make the most sense? We have 1 and 2 implemented for multiclass LogisticRegression. For Linear/Poisson models, I think 2 is almost equivalent to fitting the targets independently (up to exact Lasso path selection). Doing 2 jointly would require substantial work. 1 and 3 would require some re-working of the code, but should rely on existing sklearn models and so wouldn't be as difficult. |
For my particular use-case option 2 makes the most sense because I expect that the targets will typically have different supports (I was playing around with using your linear models to carry out sparse regression in this package). The targets could be fit independently. There's no rush on getting a fix out—I've implemented a simplified version of your union-of-intersections algorithm (literally just a pair of for loops) that should get the job done for now. However, if/when you put out a fix I'll add an example (and reference) showing how to use |
Hi, very interesting package! I might be doing something wrong, but I also may have found a bug. The pyuoi linear models are subclasses of
sklearn.base.MultiOutputMixin
(i.e.isinstance(model, MultiOutputMixin)
evaluates to True), but they don't appear to support multiple targets.Minimal working example:
Error message:
The text was updated successfully, but these errors were encountered: