-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SageMaker custom types for ParameterRangeOneOf and HyperparameterConf…
…ig. TunableParams extraction (#189) Creates custom types for ParameterRangeOneOf and HyperparameterJobConfig. Use generics to serialize/deserialize protos to make UX visualization easier Move tunable hyperparameters out of HyperparameterJobConfig to make it easier to bind (and consistent with Custom Container Training Job) * Typing * ParameterRangeOneOf model * cleanup * lint * lint * unittests * unit * unit * isort * isort * py 3.5 * lint * lint * re-add generic types to protos * lint * Remove generic * remove T * reformat * fix import * PR Comments * lint * lint * PR Comments * PR Comments * lint * unittest * PR Comments * lint * remove deprecated fields * Support converting raw protos through Types.*Proto classes * lint * revert notebook.py * lint
- Loading branch information
Showing
15 changed files
with
797 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from flytekit.models.sagemaker import hpo_job as _hpo_models | ||
from flytekit.models.sagemaker import parameter_ranges as _parameter_range_models | ||
from flytekit.sdk import types as _sdk_types | ||
|
||
HyperparameterTuningJobConfig = _sdk_types.Types.GenericProto(_hpo_models.HyperparameterTuningJobConfig) | ||
|
||
ParameterRange = _sdk_types.Types.GenericProto(_parameter_range_models.ParameterRangeOneOf) |
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.