Requires scikit-learn.