do_for

hybrid_learning.experimentation.exp_eval_common.do_for(func, allow_looping=('experiment_root', 'model_key', 'split', 'logic_type'), verbose_looping=True, **kwargs)[source]

Apply func to all combinations of elements in the allow_looping list of kwargs-keys. If a value for an allow_looping key is a list or tuple, it will be iterated over. Nested lists get flattened.

Returns

a list of tuples (used_kwargs, func_return)

Parameters
Return type

List[Tuple[Dict[str, Any], Any]]