Method¶
- class iohblade.method.Method(llm: LLM, budget, name='Method')¶
Bases:
ABC- abstractmethod get_config() dict[str, Any]¶
The method’s configuration, logged with every run.
- Returns:
A dictionary with the keys
name(str): the name of the method;source(str): where the implementation comes from, for examplegithub.com/vendor/repository@<commit_hash>;config(dict): the arguments that configure the method.
- Return type:
dict[str, Any]
- abstractmethod to_dict() dict[str, Any]¶
Returns a dictionary representation of the method including all parameters.
- Returns:
Dictionary representation of the method.
- Return type:
dict
- property uses_hpo: bool¶
Whether the method samples solutions with a configuration space.
Such solutions are meant to be tuned (HPO) by the problem; an
Experimentenables HPO on the problems that support it (seeiohblade.hpo.configure_hpo()).