progress#
Progress abstraction holding stopping criteria and progress information.
Module Contents#
Contents#
- class evalml.automl.progress.Progress(max_time=None, max_batches=None, max_iterations=None, patience=None, tolerance=None, automl_algorithm=None, objective=None, verbose=False)[source]#
Progress object holding stopping criteria and progress information.
- Parameters
max_time (int) – Maximum time to search for pipelines.
max_iterations (int) – Maximum number of iterations to search.
max_batches (int) – The maximum number of batches of pipelines to search. Parameters max_time, and max_iterations have precedence over stopping the search.
patience (int) – Number of iterations without improvement to stop search early.
tolerance (float) – Minimum percentage difference to qualify as score improvement for early stopping.
automl_algorithm (str) – The automl algorithm to use. Used to calculate iterations if max_batches is selected as stopping criteria.
objective (str, ObjectiveBase) – The objective used in search.
verbose (boolean) – Whether or not to log out stopping information.
Methods
Return time elapsed using the start time and current time.
Return information about current and end state of each stopping criteria in order of priority.
Given AutoML Results, return whether or not the search should continue.
Sets start time to current time.
- return_progress(self)[source]#
Return information about current and end state of each stopping criteria in order of priority.
- Returns
list of dictionaries containing information of each stopping criteria.
- Return type
List[Dict[str, unit]]
- should_continue(self, results, interrupted=False, mid_batch=False)[source]#
Given AutoML Results, return whether or not the search should continue.
- Parameters
results (dict) – AutoMLSearch results.
interrupted (bool) – whether AutoMLSearch was given an keyboard interrupt. Defaults to False.
mid_batch (bool) – whether this method was called while in the middle of a batch or not. Defaults to False.
- Returns
True if search should continue, False otherwise.
- Return type
bool