skfolio.utils.tools.cache_method#

skfolio.utils.tools.cache_method(cache_name)[source]#

Decorator that caches class methods results into a class dictionary.

Parameters:
cache_namestr

Name of the dictionary class attribute.

Returns:
funcCallable

Decorating function that caches class methods.