Skip to content

MAINT: Add type hints to model selection#668

Merged
TomAugspurger merged 8 commits intodask:masterfrom
stsievert:model-selection-types
Jul 14, 2020
Merged

MAINT: Add type hints to model selection#668
TomAugspurger merged 8 commits intodask:masterfrom
stsievert:model-selection-types

Conversation

@stsievert
Copy link
Copy Markdown
Member

What does this PR implement?
It adds type hints in the model_selection/_incremental.py and _hyperband.py.

Reference issues/PR
This resolves #607

@stsievert
Copy link
Copy Markdown
Member Author

It also checks the type hints via assert statements so I could test easily. I plan on ripping these assert statements out before merge (but it's useful for me to test). I looked at adding some dynamic type checking but typeguard significantly slowed down the tests.

@stsievert
Copy link
Copy Markdown
Member Author

I think this PR is ready for merge. There are no asserts or modifications to the tests.

@TomAugspurger
Copy link
Copy Markdown
Member

Looks good, thanks.

@TomAugspurger TomAugspurger merged commit fc6a04a into dask:master Jul 14, 2020
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.

Add mild type annotations

2 participants