Repository navigation
Conversation
added 2 commits
July 2, 2021 13:02
…transform(), predict(), and predict_proba()
Member
|
Thank you for tracking this down @rikturr . A couple of questions/comments
|
Contributor
Author
|
Member
|
I recommend that you identify where this should have triggered within
map_partitions/map_blocks, construct a simple case showing that it doesn't,
and then raise an issue in dask/dask about the problem. That tends to get
more eyeballs on it than dask/dask-ml
…On Fri, Jul 2, 2021 at 11:58 AM Aaron Richter ***@***.***> wrote:
@mrocklin <https://github.com/mrocklin>
1. Looking into the docs for async mode and will report back
2. Broadly, I was thinking that a good way to test this and
potentially other issues is to have some integration tests set up that
would allow for more/larger tests with distributed clusters. Is something
like that available or in the works? For this specific situation, it can be
reproduced with a LocalCluster so should be able to cover in unit
tests. I'm not sure if there's a way to get scheduler memory use
programatically from dask? I think that could be a good way to verify that
dups aren't being sent
3. Ah, I didn't realize that map_partitions and map_blocks already
check object sizes but that makes a lot of sense. So the better solution
would be to make sure that the estimator does get delayed so we don't have
to change anything in dask-ml (or xgboost, or lightgbm, etc). Looks like
sys.getsizeof() on scikit-learn estimators doesn't return the accurate
size. Checking the size with pickle does though:
[image: image]
<https://user-images.githubusercontent.com/8964039/124317870-d8b68a00-db45-11eb-90b1-2909cb6baac0.png>
Do you think its reasonable to have map_partitions and map_blocks use
pickle+getsizeof to get the proper size? Might introduce some latency.
Perhaps there's another way to get a more accurate size
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#843 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTFJB42H5JT37L5MTGDTVYD6PANCNFSM47XER66A>
.
|
Contributor
Author
|
closing in favor of fix for root issue: dask/dask#7860 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

closes #842
Functionality of ParallelPostFit is the same, except behind the scenes it now scatters the scikit-learn estimator if running with a distributed cluster. Compared to existing functionality showcased in #842 where scheduler memory increases by npartitions * estimator size, the memory increase is now just estimator size for a quick blip while it gets shipped out to the workers