diff --git a/python/dalex/dalex/model_explanations/_variable_importance/utils.py b/python/dalex/dalex/model_explanations/_variable_importance/utils.py index f92431a6..9d08f9bd 100644 --- a/python/dalex/dalex/model_explanations/_variable_importance/utils.py +++ b/python/dalex/dalex/model_explanations/_variable_importance/utils.py @@ -97,6 +97,6 @@ def calculate_loss(loss_function, observed, predicted, sample_weights=None): else: if sample_weights is not None: warnings.warn( - f"Loss function {loss_function.__name__} does not take sample weights. Calculating unweighted loss." + f"Loss function `{loss_function.__name__}` does not have `sample_weight` argument. Calculating unweighted loss." ) return loss_function(observed, predicted)