Skip to content

fix: outstanding occurrences of reblock replaced with rechunk - #203

Merged
TomAugspurger merged 4 commits into
dask:masterfrom
convexset:master
Jun 12, 2018
Merged

TomAugspurger merged 4 commits into
dask:masterfrom
convexset:master

Conversation

@convexset

Copy link
Copy Markdown
Contributor

I was just exploring the code and noticed the occurrence of reblock in

https://github.com/dask/dask/blob/master/dask/array/learn.py#L71
https://github.com/dask/dask/blob/master/dask/array/learn.py#L101

... I looked for the implementation and couldn't find any, and later found out that it was replaced with rechunk.

See: dask/dask#3570

@TomAugspurger

Copy link
Copy Markdown
Member

Thanks, this apparently isn't tested. Could you add a test that hits it? Something like

X, y = make_classsification(chunks=20)
X = X.rechunk({1: 10})

assert X.numblocks[1] > 1

clf = SGDClassifier()
inc = Incremental(clf)
inc.fit(X, y)

@convexset

convexset commented Jun 12, 2018 •

Copy link
Copy Markdown
Contributor Author

Hi, sorry, I'll get to this at some point. I've been using my spare time to do stuff in dask/dask/linalg.

... and there's "work".

@convexset

Copy link
Copy Markdown
Contributor Author

Done. =)

@TomAugspurger
TomAugspurger merged commit 3de19c5 into dask:master Jun 12, 2018
@TomAugspurger

Copy link
Copy Markdown
Member

Thanks @convexset!

convexset added a commit to convexset/dask-ml that referenced this pull request Jun 12, 2018
* commit '3de19c57eca9864ca0142a643698e5ff2e73b39e':
  fix: outstanding occurrences of reblock replaced with rechunk (dask#203)
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

Successfully merging this pull request may close these issues.

2 participants