Skip to content

Commit fb5725f

Browse files
committed
documentation: Mark baseline as optional in KernelSHAP.
1 parent 2a672bd commit fb5725f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sagemaker/clarify.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,11 @@ def __init__(
292292
"""Initializes config for SHAP.
293293
294294
Args:
295-
baseline (str or list): A list of rows (at least one) or S3 object URI to be used as
295+
baseline (None or str or list): None or S3 object Uri or A list of rows (at least one) to be used as
296296
the baseline dataset in the Kernel SHAP algorithm. The format should be the same
297297
as the dataset format. Each row should contain only the feature columns/values
298-
and omit the label column/values.
298+
and omit the label column/values. If None a baseline will be calculated automatically by using K-means
299+
or K-prototypes in the input dataset.
299300
num_samples (int): Number of samples to be used in the Kernel SHAP algorithm.
300301
This number determines the size of the generated synthetic dataset to compute the
301302
SHAP values.

0 commit comments

Comments
 (0)