hum pretty sure they are also used in other places. I guess I should import them from sklearn, then, instead of doing another backport.