neuraxle.metaopt.context¶
Module-level documentation for neuraxle.metaopt.context. Here is an inheritance diagram, including dependencies to other base modules of Neuraxle:
Neuraxle’s AutoML Context Management¶
The ExecutionContext
, is a special object
that needs to be adapted in AutoML loops.
See also
Classes
|
-
class
neuraxle.metaopt.context.
AutoMLContext
(root: str = None, flow: neuraxle.base.Flow = None, execution_phase: neuraxle.base.ExecutionPhase = <ExecutionPhase.UNSPECIFIED: None>, execution_mode: neuraxle.base.ExecutionMode = <ExecutionMode.FIT_OR_FIT_TRANSFORM_OR_TRANSFORM: 'fit_or_fit_transform_or_transform'>, stripped_saver: neuraxle.base.BaseSaver = None, parents: List[BaseStep] = None, services: Dict[Union[str, Type[BaseServiceT]], BaseServiceT] = None)[source]¶ Bases:
neuraxle.base.ExecutionContext
-
logger
¶
-
logger_at_scoped_loc
¶
-
add_scoped_logger_file_handler
() → neuraxle.logging.logging.NeuraxleLogger[source]¶ Add a file handler to the logger at the current scoped location to capture logs at this scope and below this scope.
-
free_scoped_logger_file_handler
()[source]¶ Remove file handlers from logger to free file lock (especially on Windows).
-
static
from_context
(context: neuraxle.base.ExecutionContext = None, repo: neuraxle.metaopt.repositories.repo.HyperparamsRepository = None, loc: neuraxle.metaopt.data.vanilla.ScopedLocation = None, disable_repo_lock: bool = False) → neuraxle.metaopt.context.AutoMLContext[source]¶ Create a new AutoMLContext from an ExecutionContext.
- Parameters
context (
ExecutionContext
) – ExecutionContext
-
loc
¶
-
repo
¶
-
push_attr
(subdataclass: SubDataclassT) → neuraxle.metaopt.context.AutoMLContext[source]¶ Push a new attribute into the ScopedLocation.
- Parameters
name – attribute name
value – attribute value
- Returns
an AutoMLContext copy with the new loc attribute.
-
pop_attr
() → neuraxle.metaopt.context.AutoMLContext[source]¶ Pop an attribute from the ScopedLocation.
- Returns
an AutoMLContext copy with the new popped loc attribute.
-
with_loc
(loc: neuraxle.metaopt.data.vanilla.ScopedLocation) → neuraxle.metaopt.context.AutoMLContext[source]¶ Replace the ScopedLocation by the one provided.
- Parameters
loc (
ScopedLocation
) – ScopedLocation- Returns
an AutoMLContext copy with the new loc attribute.
-
load_dc
(deep=True) → neuraxle.metaopt.data.vanilla.BaseDataclass[source]¶ Load the current dc from the repo.
-
_abc_impl
= <_abc_data object>¶
-