We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to run the following example code from the docs in Google Colab (Python 3.10, T4 GPU), I get an ImportError:
ImportError: cannot import name 'make_column_transformer' from 'cuml.preprocessing'
The code in question:
from cuml.preprocessing import StandardScaler, OneHotEncoder from cuml.compose import make_column_transformer from cuml.compose import make_column_selector import cupy as cp import cudf X = cudf.DataFrame({'city': ['London', 'London', 'Paris', 'Sallisaw'], 'rating': [5, 3, 4, 5]}) ct = make_column_transformer( (StandardScaler(), make_column_selector(dtype_include=cp.number)), # rating (OneHotEncoder(), make_column_selector(dtype_include=object))) # city ct.fit_transform(X)
I installed rapids using the following command:
!git clone https://github.com/rapidsai/rapidsai-csp-utils.git !python rapidsai-csp-utils/colab/pip-install.py
The text was updated successfully, but these errors were encountered:
make_column_transformer
.preprocessing
.compose
updated docs around make_column_transformer change from `.preproces…
a1d1fb6
…sing` to `.compose` (#5680) closes #5675 Authors: - Taurean Dyer (https://github.com/taureandyernv) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: #5680
Successfully merging a pull request may close this issue.
When I try to run the following example code from the docs in Google Colab (Python 3.10, T4 GPU), I get an ImportError:
The code in question:
I installed rapids using the following command:
The text was updated successfully, but these errors were encountered: