You will also benefit from assume_finite (see http://scikit-learn.org/stable/modules/generated/sklearn.config_context.html ) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180205/8a3cc7fe/attachment.html>