Skip to content
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

can't set attribute error when running PCA #955

Open
zadbasheer opened this issue Dec 19, 2022 · 0 comments
Open

can't set attribute error when running PCA #955

zadbasheer opened this issue Dec 19, 2022 · 0 comments

Comments

@zadbasheer
Copy link

zadbasheer commented Dec 19, 2022

Describe the issue:
Below code returns can't set attribute error

Minimal Complete Verifiable Example:

from dask_ml.decomposition import PCA
import dask.array as da
import numpy as np
X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
dX = da.from_array(X, chunks=X.shape)
pca = PCA(n_components=2)
pca.fit(dX)
# Put your MCVE code here

Anything else we need to know?:

Environment:

  • Dask version: dask==2022.7.0
  • Python version: Python 3.8.13
  • Operating System: M1 Mac
  • Install method (conda, pip, source): pip

I faced this issue when working with scikit_learn==1.1.2, It worked after i downgraded scikit_learn to scikit_learn==1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant