smac.utils.io.result_merging

Functions

get_rundirs(pattern, path)

Get SMAC run dirs, often starting with run_.

glob_re(pattern, strings)

Filter strings according to pattern.

Classes

ResultMerger([output_dir, rundir_pattern, ...])

smac.utils.io.result_merging.get_rundirs(pattern, path)[source]

Get SMAC run dirs, often starting with run_.

Parameters
  • pattern (str) – Regex expresssion.

  • path (Union[str, Path]) – Path to folder containing single SMAC rundirs

Returns

Single SMAC rundirs

Return type

Sequence[str]

smac.utils.io.result_merging.glob_re(pattern, strings)[source]

Filter strings according to pattern.

Parameters
  • pattern (str) – Regex pattern

  • strings (List[str]) – List of strings to filter.

Return type

filter[str]