Urgent fix for breaking changes in scikit-learn 1.0.