:py:mod:`cotengra.hyperoptimizers.hyper_choco` ============================================== .. py:module:: cotengra.hyperoptimizers.hyper_choco .. autoapi-nested-parse:: Hyper optimization using choco. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: cotengra.hyperoptimizers.hyper_choco.convert_param_to_choco cotengra.hyperoptimizers.hyper_choco.get_chocolate_space cotengra.hyperoptimizers.hyper_choco.chocolate_init_optimizers cotengra.hyperoptimizers.hyper_choco.chocolate_get_setting cotengra.hyperoptimizers.hyper_choco.chocolate_report_result .. py:function:: convert_param_to_choco(param) Convert a single search parameter suitably for ``chocolate``. .. py:function:: get_chocolate_space(methods, space) Get the whole search space defined suitably for ``chocolate``. .. py:function:: chocolate_init_optimizers(self, methods, space, sampler='CMAES', sampler_opts=None) Initialize the ``chocolate`` optimizer. :param space: The search space. :type space: dict[str, dict[str, dict]] :param sampler: The optimizer to search the space with, see https://chocolate.readthedocs.io/en/latest/tutorials/algo.html. :type sampler: str, optional .. py:function:: chocolate_get_setting(self) Find the next parameters to test. .. py:function:: chocolate_report_result(self, setting, trial, score) Report the result of a trial to the ``chocolate`` optimizer.