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
set_config(transform_output="pandas") causes error in Isomap #27579
Comments
Hi #try this scaler.fit(X) |
I'm afraid it does not work for me. Assuming you mean to call fit_transform with |
It is due to the fact that we don't force the output of the internal kernel centerer in the The fix would be to set the output of the kernel centerer to I will make a PR: /take |
A minimal reproducer will be the following: import sklearn
from sklearn.datasets import load_iris
from sklearn.decomposition import KernelPCA
X, _ = load_iris(as_frame=True, return_X_y=True)
with sklearn.config_context(transform_output="pandas"):
KernelPCA(eigen_solver="arpack").fit_transform(X) |
#27583 should solve the issue and will be in the next release. |
Describe the bug
I am getting an error when using the awesome
set_config(transform_output="pandas")
in combination with Isomap. The Error says "AttributeError: 'DataFrame' object has no attribute 'dtype'", so my temporary solution is to switch back to the default config.I am working with version 1.3.1 (latest I could find).
Steps/Code to Reproduce
Expected Results
No error is thrown and transformed results are returned.
Actual Results
Versions
The text was updated successfully, but these errors were encountered: