FIX: remove deprecation warnings in learning curves under Python 3
Merge pull request #3090 from ogrisel/learning-curves-warnings

[MRG] FIX: remove deprecation warnings in learning curves under Python 3