automatic fix of changing cvtype in different versions of sklearn