added ravel for decision_function