Skip to main content

tune.trial_runner

Nologger Objects

class Nologger()

Logger without logging.

SimpleTrial Objects

class SimpleTrial(Trial)

A simple trial class.

BaseTrialRunner Objects

class BaseTrialRunner()

Implementation of a simple trial runner.

Note that the caller usually should not mutate trial state directly.

get_trials

def get_trials()

Returns the list of trials managed by this TrialRunner.

Note that the caller usually should not mutate trial state directly.

add_trial

def add_trial(trial)

Adds a new trial to this TrialRunner.

Trials may be added at any time.

Arguments:

  • trial Trial - Trial to queue.

stop_trial

def stop_trial(trial)

Stops trial.

SequentialTrialRunner Objects

class SequentialTrialRunner(BaseTrialRunner)

Implementation of the sequential trial runner.

step

def step() -> Trial

Runs one step of the trial event loop.

Callers should typically run this method repeatedly in a loop. They may inspect or modify the runner's state in between calls to step().

Returns:

a trial to run.

SparkTrialRunner Objects

class SparkTrialRunner(BaseTrialRunner)

Implementation of the spark trial runner.

step

def step() -> Trial

Runs one step of the trial event loop.

Callers should typically run this method repeatedly in a loop. They may inspect or modify the runner's state in between calls to step().

Returns:

a trial to run.