-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ARDRegressor
variance prediction fails on X: pd.DataFrame
#28310
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
Labels
Comments
fkiraly
pushed a commit
to sktime/skpro
that referenced
this issue
Jan 30, 2024
…#192) This PR fixes API non-compliances in the `sklearn` variance prediction adapters, uncovered by #189: * `sklearn` `ARDRegressor` fails with `X: pd.DataFrame` on `predict` with `return_std=True` scikit-learn/scikit-learn#28310 * `skpro` `SklearnProbaReg.predict` returned `np.ndarray` even if `y` in `fit` was `pd.DataFrame`
Ineed. Do you want to investigate this bug @Higgs32584? |
@glemaitre sure |
eddiebergman
added a commit
to eddiebergman/scikit-learn
that referenced
this issue
Feb 7, 2024
Hi, I made a PR in #28377 that fixes the problem given from the helpful reproduction code. |
eddiebergman
added a commit
to eddiebergman/scikit-learn
that referenced
this issue
Feb 7, 2024
eddiebergman
added a commit
to eddiebergman/scikit-learn
that referenced
this issue
Feb 8, 2024
eddiebergman
added a commit
to eddiebergman/scikit-learn
that referenced
this issue
Feb 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
ARDRegressor.predict
fails ifreturn_std=True
andX
ispd.DataFrame
.The failure occurs at the line
X = X[:, self.lambda_ < self.threshold_lambda]
.The problem occurred while writing an adapter in
skpro
and testing API contracts, see here: sktime/skpro#192It seems surprising that the combination of
return_std
andpd.DataFrame
input is not strictly tested insklearn
?Steps/Code to Reproduce
Expected Results
predict
does not fail and produces interface conformant predictions (a duple)Actual Results
Versions
The text was updated successfully, but these errors were encountered: