Skip to content

Rebuild a MultiOutputRegressor from MultiOutputRegressor(AutoML()) #484

Answered by sonichi
pohpas asked this question in Q&A
Discussion options

You must be logged in to vote

The only way I can think of is to inherit MultiOutputRegressor and override its (fit)[https://github.com/scikit-learn/scikit-learn/blob/37ac6788c9504ee409b75e5e24ff7d86c90c2ffb/sklearn/multioutput.py#L153] function. Set self.estimators_ to be the list of estimators you want, and modify https://github.com/scikit-learn/scikit-learn/blob/37ac6788c9504ee409b75e5e24ff7d86c90c2ffb/sklearn/multioutput.py#L202-L207

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pohpas
Comment options

@sonichi
Comment options

Answer selected by pohpas
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