It would be nice to raise a meaningful error if the estimator does not implement the 'decision_function' method, rather than the AttributeError that will end up being raised by the current code.