Sklearn utils changed to use instance methods