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

LogisticRegression.score returns an empty dask array #971

Open
sj-ucsd opened this issue Jun 2, 2023 · 0 comments
Open

LogisticRegression.score returns an empty dask array #971

sj-ucsd opened this issue Jun 2, 2023 · 0 comments

Comments

@sj-ucsd
Copy link

sj-ucsd commented Jun 2, 2023

Describe the issue:
Unable to print logistic regression score as a float instead get an empty array:

ArrayChunkBytes8 B8 BShape()()Dask graph1 chunks in 32 graph layersData typefloat64 numpy.ndarray | Array | Chunk | Bytes | 8 B | 8 B | Shape | () | () | Dask graph | 1 chunks in 32 graph layers | Data type | float64 numpy.ndarray

8 B | 8 B
() | ()
1 chunks in 32 graph layers
float64 numpy.ndarray


Minimal Complete Verifiable Example:

# Put your MCVE code here
```from dask_ml.linear_model import LogisticRegression
from dask_glm.datasets import make_classification
X, y = make_classification()
lr = LogisticRegression()
lr.fit(X, y)
lr.score(X, y)

**Anything else we need to know?**:

**Environment**:

- Dask version:'2023.4.1'
- Python version:3.9
- Operating System:Mac OS
- Install method (conda, pip, source): Conda
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