Skip to main content

tune.searcher.search_thread

SearchThread Objects

class SearchThread()

Class of global or local search thread.

__init__

def __init__(mode: str = "min", search_alg: Optional[Searcher] = None, cost_attr: Optional[str] = TIME_TOTAL_S, eps: Optional[float] = 1.0)

When search_alg is omitted, use local search FLOW2.

suggest

def suggest(trial_id: str) -> Optional[Dict]

Use the suggest() of the underlying search algorithm.

on_trial_complete

def on_trial_complete(trial_id: str, result: Optional[Dict] = None, error: bool = False)

Update the statistics of the thread.

reach

def reach(thread) -> bool

Whether the incumbent can reach the incumbent of thread.

can_suggest

@property
def can_suggest() -> bool

Whether the thread can suggest new configs.