Skip to content

MAINT: use async/await in model selection#675

Merged
TomAugspurger merged 45 commits intodask:masterfrom
stsievert:ms-async
May 28, 2020
Merged

MAINT: use async/await in model selection#675
TomAugspurger merged 45 commits intodask:masterfrom
stsievert:ms-async

Conversation

@stsievert
Copy link
Copy Markdown
Member

What does this PR implement?
It uses async/await syntax instead of Tornado.

Reference issues/PRs
Hopefully this resolves #673.

@stsievert stsievert marked this pull request as draft May 27, 2020 13:40
@stsievert stsievert marked this pull request as ready for review May 27, 2020 13:50
@mrocklin
Copy link
Copy Markdown
Member

Regardless of if this fixes the underlying issue, hooray for modern python!

@stsievert
Copy link
Copy Markdown
Member Author

I think this PR is ready for merge or review. The CI has been green for a while, and I think it's stable; I've made some small tweaks to increase stability to test_incremental::test_basic:

Details

test_incremental::test_basic passes all the time locally; however, on the CI it failed in c1a3bd2. Since then, I have done the following:

  1. Changed the model from SGDClassifier to ConstantFunction. Now, no computation is required for fitting.
  2. Increased the timeout from 500 to 1000 seconds. I think this is fair; I've included timeout=None and timeout=5000 in other model selection tests.

When I time this test locally, 83% ran in less than 1 second and 89% ran in less than 3 seconds during 101 tests. 11 of these tests that took longer took between 12 and 17 seconds.

Regardless of if this fixes the underlying issue, hooray for modern python!

Now, Dask-ML doesn't import Tornado!

$ grep -r "tornado" dask_ml tests
$

Copy link
Copy Markdown
Member

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Seems like there was still a failure on windows unfortunately. Still progress though, just a few small changes.

@TomAugspurger TomAugspurger merged commit a770dbd into dask:master May 28, 2020
@TomAugspurger
Copy link
Copy Markdown
Member

Thanks!

@stsievert stsievert deleted the ms-async branch May 28, 2020 13:49
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.

Flaky Incremental Model Selection tests

3 participants