get_data_home#

causalbase.datasets.get_data_home(data_home=None)[source]#

Return the folder that caches the networks fetch_network() downloads.

Parameters:
data_homestr or path-like, optional

The folder to use. By default the CAUSALBASE_DATA environment variable, and without it causalbase inside XDG_CACHE_HOME (~/.cache when that is not set either).

Returns:
pathlib.Path

The folder, which need not exist yet.