ray.tune.search.create_searcher#

ray.tune.search.create_searcher(search_alg: str, **kwargs)[source]#

Instantiate a search algorithm based on the given string.

This is useful for swapping between different search algorithms.

Parameters:
  • search_alg – The search algorithm to use.

  • **kwargs – Additional parameters (e.g. metric and mode). These keyword arguments will be passed to the initialization function of the chosen class.

Returns:

The search algorithm.

Return type:

ray.tune.search.Searcher

Example

>>> from ray import tune 
>>> search_alg = tune.create_searcher('ax') 

PublicAPI (beta): This API is in beta and may change before becoming stable.