sequential_engine

Module Contents

Classes Summary

SequentialComputation

A Future-like api for jobs created by the SequentialEngine, an Engine that sequentially computes the submitted jobs.

SequentialEngine

The default engine for the AutoML search. Trains and scores pipelines locally and sequentially.

Contents

class evalml.automl.engine.sequential_engine.SequentialComputation(work, **kwargs)[source]

A Future-like api for jobs created by the SequentialEngine, an Engine that sequentially computes the submitted jobs.

In order to separate the engine from the AutoMLSearch loop, we need the sequential computations to behave the same way as concurrent computations from AutoMLSearch’s point-of-view. One way to do this is by delaying the computation in the sequential engine until get_result is called. Since AutoMLSearch will call get_result only when the computation is “done”, by always returning True in done() we make sure that get_result is called in the order that the jobs are submitted. So the computations happen sequentially!

Parameters

work (callable) – Computation that should be done by the engine.

Methods

cancel

Cancel the current computation.

done

Whether the computation is done.

get_result

Gets the computation result.

cancel(self)[source]

Cancel the current computation.

done(self)[source]

Whether the computation is done.

get_result(self)[source]

Gets the computation result. Will block until the computation is finished.

Raises Exception: If computation fails. Returns traceback.

class evalml.automl.engine.sequential_engine.SequentialEngine[source]

The default engine for the AutoML search. Trains and scores pipelines locally and sequentially.

Methods

close

setup_job_log

submit_evaluation_job

Submit job for pipeline evaluation during AutoMLSearch.

submit_scoring_job

Submit job for pipeline scoring.

submit_training_job

Submit job for pipeline training.

close(self)[source]
static setup_job_log()
submit_evaluation_job(self, automl_config, pipeline, X, y)[source]

Submit job for pipeline evaluation during AutoMLSearch.

submit_scoring_job(self, automl_config, pipeline, X, y, objectives)[source]

Submit job for pipeline scoring.

submit_training_job(self, automl_config, pipeline, X, y)[source]

Submit job for pipeline training.