File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33
33
34
34
35
35
def get_data_home (data_home = None ) -> str :
36
- """Return the path of the scikit-learn data dir .
36
+ """Return the path of the scikit-learn data directory .
37
37
38
38
This folder is used by some large dataset loaders to avoid downloading the
39
39
data several times.
40
40
41
- By default the data dir is set to a folder named 'scikit_learn_data' in the
41
+ By default the data directory is set to a folder named 'scikit_learn_data' in the
42
42
user home folder.
43
43
44
44
Alternatively, it can be set by the 'SCIKIT_LEARN_DATA' environment
@@ -52,6 +52,11 @@ def get_data_home(data_home=None) -> str:
52
52
data_home : str, default=None
53
53
The path to scikit-learn data directory. If `None`, the default path
54
54
is `~/sklearn_learn_data`.
55
+
56
+ Returns
57
+ -------
58
+ data_home: str
59
+ The path to scikit-learn data directory.
55
60
"""
56
61
if data_home is None :
57
62
data_home = environ .get ("SCIKIT_LEARN_DATA" , join ("~" , "scikit_learn_data" ))
Original file line number Diff line number Diff line change 18
18
"sklearn.covariance._shrunk_covariance.ledoit_wolf" ,
19
19
"sklearn.covariance._shrunk_covariance.ledoit_wolf_shrinkage" ,
20
20
"sklearn.covariance._shrunk_covariance.shrunk_covariance" ,
21
- "sklearn.datasets._base.get_data_home" ,
22
21
"sklearn.datasets._base.load_breast_cancer" ,
23
22
"sklearn.datasets._base.load_digits" ,
24
23
"sklearn.datasets._base.load_linnerud" ,
You can’t perform that action at this time.
0 commit comments