-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding feature type shared parameter capability for hyperopt (#…
…2133) * Added method to track eligible input features for shared parameters * Passing shared params features into _run_experiment * Refactor * Almost working shared params * Completely working shared params * Aligning variable names for consistency * Refactor logic for updating shared params to be more readable * Added docstrings * formatting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Removing unnecessary import of unittest.mock.DEFAULT from constants.py * Added integration test for shared params hyperopt * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adding type hints to function definitions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added optional types * Adding better exception and using constants * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Using tempfile to remove cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added support for output features * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * removing nested function * Resolving merge conflict * Fix docstring typo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adding empty lists as defaults for input/output feature config * Added support incase default encoders/decoders are specified in config * Fix keyword arg in execute * Adding conditional check for tests that call execute instead of hyperopt directly * Fixed failing test because of Ray 1.13 * Fixing key type issue based on Ray version * Simplifying and improving readability * Renaming tests for clarity * Added type hints to substitute_parameters * Reorder guard clauses for correct sequential ordering of checks * Refactoring tests two split into two to test each act separately * additional checks to short circuit more quickly * More refactoring * Changing hyperopt search space to use user-level parameters * Adding markers * Resolving parameter names to be non-private attributes in tests * Force push to fix failing tests * Add vocab_size back as parameter for tests and make sample options smaller values * Refactoring tests to run more efficiently * Changing conditional ray check * Update to apply shared defaults to both input and output features without distinction * Fix typo causing tests to fail * Fix typo causing test to fail * Better value error message * Simplfying functions * Fixed type hints Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
76055a2
commit 236cf54
Showing
6 changed files
with
410 additions
and
53 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
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
Oops, something went wrong.