Where can we find the valid kwargs for make_scorer? The documentation doesn’t mention pos_label, and I haven’t been able to find any other resources on it either.
In this exercise you may have defined your scorer as
precision = make_scorer(precision_score, pos_label="donated")
Notice that pos_label is a parameter of the precision_score function, not the make_scorer. The generic notation **kwargs means that any parameter of the score_func will be available to reach from the make_scorer.
You can try for instance, to change the average strategy parameter of the precision_score function by passing it as
precision = make_scorer(precision_score,
pos_label="donated",
average="macro")