automl.components.executors package

class Executor

Bases: abc.ABC

This class defines the abstract behavior required of an Executor.

Executor executes a recommendation, and produces a score.

abort(ctx: automl.defs.Context)

This method is called to abort execution immediately. This method is called from the Main Thread.

Parameters

ctx – the context that enables cross-component data sharing

Returns:

abstract determine_search_space(ctx: automl.defs.Context) → <a class="reference internal" href="automl.html#automl.defs.SearchSpace" title="automl.defs.SearchSpace" target="_self">automl.defs.SearchSpace</a>

This method is called by the AutoML engine to determine the AutoML search space. This method is called from the Main Thread.

Parameters

ctx – the context that enables cross-component data sharing

Returns: a search space

abstract execute(recommendation: automl.defs.Recommendation, ctx: automl.defs.Context) → object

Execute the specified recommendation and return a score.

This method is called from the Job Thread.

Parameters
  • recommendation – the recommendation to be executed

  • ctx – the context that enables cross-component data sharing

Returns: an object that represents the score

shutdown(ctx: automl.defs.Context)

This method is called to shutdown the executor. This is called at the end of the AutoML workflow.

This method is called from the Main Thread.

Parameters

ctx – the context that enables cross-component data sharing

Returns:

© Copyright 2021, NVIDIA. Last updated on Feb 2, 2023.