Skip to content

Commit 220dda5

Browse files
committed
Update docstrings
1 parent c7f5b20 commit 220dda5

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

scripts/_init_scripts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
class PredictionTask:
3030
"""
31+
Load data and define associated predictive pipelines.
3132
3233
Parameters
3334
----------

scripts/collect_shap.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,15 @@ def _fun_parallel(prediction_task, X, y, r, disable_infos):
105105
106106
Returns
107107
-------
108-
shap_dict:
109-
110-
coefs_dict:
108+
shap_dict: dictionary
109+
Dictionary whose keys correspond to the different modalities (e.g., "RNA", "clinical") and the items correspond
110+
to pandas dataframe of size (n_samples, n_features) that contain the SHAP values collected across the test sets
111+
of the cross-validation scheme.
112+
113+
coefs_dict: dictionary or None
114+
Dictionary whose keys correspond to the different modalities (e.g., "RNA", "clinical") and the items correspond
115+
to arrays of size (n_folds, n_features) that contain the linear coefficients collected across the different
116+
folds of the cross-validation scheme. None if the classifier type is not linear.
111117
"""
112118

113119
cv = StratifiedKFold(n_splits=10, shuffle=True)

scripts/collect_shap_survival.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,15 @@ def _fun_parallel(prediction_task, X, y, r, disable_infos):
113113
114114
Returns
115115
-------
116-
shap_dict:
117-
118-
coefs_dict:
116+
shap_dict: dictionary
117+
Dictionary whose keys correspond to the different modalities (e.g., "RNA", "clinical") and the items correspond
118+
to pandas dataframe of size (n_samples, n_features) that contain the SHAP values collected across the test sets
119+
of the cross-validation scheme.
120+
121+
coefs_dict: dictionary or None
122+
Dictionary whose keys correspond to the different modalities (e.g., "RNA", "clinical") and the items correspond
123+
to arrays of size (n_folds, n_features) that contain the linear coefficients collected across the different
124+
folds of the cross-validation scheme. None if the survival model type is not linear.
119125
"""
120126

121127
cv = CensoredKFold(n_splits=10, shuffle=True)

0 commit comments

Comments
 (0)