adaptive.utils module#

adaptive.utils.assign_defaults(function, df, function_prefix: str = 'function.')[source]#
adaptive.utils.cache_latest(f: Callable) Callable[source]#

Cache the latest return value of the function and add it as ‘self._cache[f.__name__]’.

adaptive.utils.copy_docstring_from(other: Callable) Callable[source]#
adaptive.utils.load(fname: str, compress: bool = True) Any[source]#
adaptive.utils.named_product(**items: Mapping[str, Sequence[Any]])[source]#
adaptive.utils.partial_function_from_dataframe(function, df, function_prefix: str = 'function.')[source]#
adaptive.utils.restore(*learners) contextlib._GeneratorContextManager[source]#
adaptive.utils.save(fname: str, data: Any, compress: bool = True) bool[source]#