Backports for sklearn 0.14