-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
model_selection
sub-package for hyper-parameters (#257)
* add `model_selection` module * classification -> inference * clean-up * add sklearn licenses * c info * add .coveragerc * add unit tests
- Loading branch information
Showing
32 changed files
with
1,491 additions
and
83 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
omit = "sequentia/model_selection/_validation.py" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
/* Adds overflow to the Table of Contents on the side bar */ | ||
div[aria-label="main navigation"] div.sphinxsidebarwrapper div:first-child { | ||
div.sphinxsidebarwrapper { | ||
overflow-x: auto; | ||
} | ||
|
||
/* Hides any API reference lists in the Table of Contents */ | ||
div[aria-label="main navigation"] div.sphinxsidebarwrapper div:first-child a[href="#api-reference"] + ul { | ||
div.sphinxsidebarwrapper a[href="#definitions"] + ul > li > ul { | ||
display: none; | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Model Selection | ||
=============== | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
searching.rst | ||
splitting.rst | ||
|
||
---- | ||
|
||
For validating models and performing hyper-parameter selection, it is common | ||
to use cross-validation methods such as those in :mod:`sklearn.model_selection`. | ||
|
||
Although :mod:`sklearn.model_selection` is partially compatible with Sequentia, | ||
we define our own wrapped versions of certain classes and functions to allow | ||
support for sequences. | ||
|
||
- :ref:`searching` defines methods for searching hyper-parameter spaces in different ways, such as :class:`sequentia.model_selection.GridSearchCV`. | ||
- :ref:`splitting` defines methods for partitioning data into training/validation splits for cross-validation, such as :class:`sequentia.model_selection.KFold`. |
Oops, something went wrong.