We are using ray 2.1 And are seeing errors with Repeater. Code to reproduce is below:
>>> from ray.tune.search.basic_variant import BasicVariantGenerator
>>> from ray.tune.search import Repeater
>>> algo=BasicVariantGenerator()
>>> algorithm = Repeater(algo, repeat=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mtian/IdeaProjects/tf2-trainer_trunk/build/tf2-trainer-component-training/environments/development-venv/lib/python3.7/site-packages/ray/tune/search/repeater.py", line 127, in __init__
metric=self.searcher.metric, mode=self.searcher.mode
AttributeError: 'BasicVariantGenerator' object has no attribute 'mode'
I think the root cause it that BasicVariantGenerator is a SearchAlgorithm. But repeater needs a Searcher. Is there a Searcher class for the default random search algorithm (BasicVariantGenerator)