It look like `decision_function`, but I haven't investigated further.

Why is it restricted to two class and discrete? 
Could it  be possible to check that we have `predict_proba` instead of asking only discrete?