You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stemflow/model/AdaSTEM.py
+26-9Lines changed: 26 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,8 @@ def __init__(
114
114
lazy_loading_dir: Union[str, None] =None,
115
115
min_class_sample: int=1,
116
116
ensemble_bootstrap: bool=False,
117
-
joblib_backend: str='loky'
117
+
joblib_backend: str='loky',
118
+
joblib_temp_folder: Union[None, str] =None
118
119
):
119
120
"""Make an AdaSTEM object
120
121
@@ -192,6 +193,8 @@ def __init__(
192
193
Whether to bootstrap the data at each ensemble level to account for uncertainty. Defaults to False.
193
194
joblib_backend:
194
195
The backend of joblib. Defaults to 'loky'. Other options include 'multiprocessing', 'threading'.
196
+
joblib_temp_folder:
197
+
The temporary folder for joblib. If None, falling back to joblib's default directory. If 'lazy_loading_dir', set as the same directory as lazy_loading_dir. If it's string, create a directory and store data into it. Defaults to None.
195
198
Raises:
196
199
AttributeError: Base model do not have method 'fit' or 'predict'
197
200
AttributeError: task not in one of ['regression', 'classification', 'hurdle']
Copy file name to clipboardExpand all lines: stemflow/model/STEM.py
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,8 @@ def __init__(
51
51
lazy_loading_dir: Union[str, None] =None,
52
52
min_class_sample: int=1,
53
53
ensemble_bootstrap: bool=False,
54
-
joblib_backend: str='loky'
54
+
joblib_backend: str='loky',
55
+
joblib_temp_folder: Union[None, str] =None
55
56
):
56
57
"""Make a STEM object
57
58
@@ -127,6 +128,8 @@ def __init__(
127
128
Whether to bootstrap the data at each ensemble level to account for uncertainty. Defaults to False.
128
129
joblib_backend:
129
130
The backend of joblib. Defaults to 'loky'. Other options include 'multiprocessing', 'threading'.
131
+
joblib_temp_folder:
132
+
The temporary folder for joblib. If None, falling back to joblib's default directory. If 'lazy_loading_dir', set as the same directory as lazy_loading_dir. If it's string, create a directory and store data into it. Defaults to None.
130
133
Raises:
131
134
AttributeError: Base model do not have method 'fit' or 'predict'
132
135
AttributeError: task not in one of ['regression', 'classification', 'hurdle']
0 commit comments