apple / apple/coremltools

SKLearn regression model with multiple outputs

Open
#2,586 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
5.4k
Forks
850
Avg merge
4d 5h
Merged PRs (30d)
10

Description

## 🌱 Describe your Feature Request
I want to convert a `sklearn.linear_model.LinearRegression` model with multiple output targets (149 to be exact) but it seems like the [converter](https://apple.github.io/coremltools/source/coremltools.converters.sklearn.html#module-coremltools.converters.sklearn._converter) only supports a single output. This looks like an artificial limitation, is it possible to support multiple outputs?

## Describe alternatives you've considered
A multifunction-model is possible but quite annoying to work with. Since this is a simple linear function I think it can be first converted to neural network and then converted that way but this won't work as easily for other models.

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the scikit-learn converter module linked in the issue and trace how LinearRegression models are handled. Determine how the converter currently limits outputs, then validate support for 149 output targets and confirm the converted model preserves all outputs; the issue names no test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.