# sklearn.datasets.get_data_home¶

sklearn.datasets.get_data_home(data_home=None) str[source]

Return the path of the scikit-learn data directory.

By default the data directory is set to a folder named ‘scikit_learn_data’ in the user home folder.

Alternatively, it can be set by the ‘SCIKIT_LEARN_DATA’ environment variable or programmatically by giving an explicit folder path. The ‘~’ symbol is expanded to the user home folder.

If the folder does not already exist, it is automatically created.

Parameters:
data_homestr, default=None

The path to scikit-learn data directory. If None, the default path is ~/sklearn_learn_data.

Returns:
data_home: str

The path to scikit-learn data directory.

## Examples using sklearn.datasets.get_data_home¶

Out-of-core classification of text documents

Out-of-core classification of text documents