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

LinearRegression returns error for 1e7 elements #948

Open
AlexeyPechnikov opened this issue Nov 1, 2022 · 0 comments
Open

LinearRegression returns error for 1e7 elements #948

AlexeyPechnikov opened this issue Nov 1, 2022 · 0 comments

Comments

@AlexeyPechnikov
Copy link

dask_ml.linear_model.LinearRegression doesn't work for 1e7 elements (while it works for size = 1e6):

from sklearn.pipeline import make_pipeline
from dask_ml.preprocessing import StandardScaler
from dask_ml.linear_model import LinearRegression

size = 1e7
X = dask.array.arange(2*size).reshape(-1,2)
y = dask.array.arange(size).reshape(-1,1)
reg = make_pipeline(StandardScaler(), LinearRegression())
reg.fit(X, y)

image

sklearn.linear_model.LinearRegression works well for the same case:

from sklearn.pipeline import make_pipeline
#from dask_ml.preprocessing import StandardScaler
#from dask_ml.linear_model import LinearRegression
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import StandardScaler

size = 1e7
X = dask.array.arange(2*size).reshape(-1,2)
y = dask.array.arange(size).reshape(-1,1)
reg = make_pipeline(StandardScaler(), LinearRegression())
reg.fit(X, y)

image

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