Some scorers rely on `decision_function`, etc. not `predict`, so I don't see this validation as justified. If it remains, please use `elif` to reduce the nesting.