hydra
hydra ¶
Module containing all utils regarding hydra
Classes¶
HydraInitField ¶
Bases: Field
Used to configure Dagster Ops
Used to configure Dagster Ops with a target class
Parameters:
-
target_class
–class which is instantiated from the op
-
description
(Optional[str]
, default:None
) –description of the class or field
-
default_value
(Optional[dict]
, default:None
) –default value of the field when nothing is provided
-
example_value
(Optional[dict]
, default:None
) –example value of the field shown in the documentation
-
**kwargs
–additional kwargs passed to the Field class
Source code in niceml/config/hydra.py
Functions¶
HydraMapField ¶
Bases: Field
Used to configure Dagster Ops
Used to configure Dagster Ops with a map
Parameters:
-
target_class
–class which is instantiated from the op in the map
-
description
(Optional[str]
, default:None
) –description of the class or field
-
default_value
(Optional[dict]
, default:None
) –default value of the field when nothing is provided
-
example_value
(Optional[dict]
, default:None
) –example value of the field shown in the documentation
-
**kwargs
–additional kwargs passed to the Field class
Source code in niceml/config/hydra.py
Functions¶
Functions¶
hydra_conf_mapping_factory ¶
Load hydra configuration from config
.
Parameters:
-
config
–Configuration to be processed with hydra.
-
drop
(Iterable[str]
, default:('globals')
) –Keys to remove from the processed configuration after processing with hydra. Useful to define configuration variables that shall be used for interpolation during processing but not enter the processed configuration. Default:
("globals",)
.
Source code in niceml/config/hydra.py
instantiate_from_yaml ¶
uses hydra instantiate to a yaml config
Source code in niceml/config/hydra.py
prepend_hydra_search_paths ¶
Add searchpaths to config under hydra/searchpath.