Sets the score to a constant value if it matches a predicate.
Predicate method to match against.
Value to set the score to if the predicate is matched.
Transforms the input score to value if predicate is matched; otherwise the original value is preserved.