dask / dask/dask-ml

can't set attribute error when running PCA

Open
#955 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
951
Forks
262
PR merge metrics
No merged PRs in 30d

Description

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

**Minimal Complete Verifiable Example**:

```python
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.