cache_at

hybrid_learning.experimentation.exp_eval_common.cache_at(save_as, common_settings=None)[source]

Return decorator that will cache the returned list of dicts in the JSON file save_as. If the file exists, the results are loaded from the file instead of executing the decorated function, ensuring the same common_settings had been used.

Raises

An AssertionError is raised if the common_settings do not coincide.

Parameters