scikit-learn/scikit-learn — pull request #2006 by jnothman (2013-05-27 13:04:50+00:00)
Title: ENH Special-case where LabelEncoder need not copy

If the classes are a range, no operation needs to be done by `LabelEncoder`. This makes it more reasonable to use `LabelEncoder` in validation-type transformations.