Incorrect documented output shape for predict
method of linear models when n_targets
> 1
#29009
Labels
predict
method of linear models when n_targets
> 1
#29009
Describe the issue linked to the documentation
For some classes under
sklearn.linear_model
such asLinearRegression
,Ridge
,RidgeCV
, and a bunch of others, the documentation for thepredict
method states that it returnsHowever, this is incorrect when the model is fitted with
y
with shape(n_samples, n_targets)
, i.e.n_targets
> 1, in which case the returned array should have shape(n_samples, n_targets)
.Suggest a potential alternative/fix
The documentation for the return value of the
predict
method should beThe text was updated successfully, but these errors were encountered: