scikit-learn/scikit-learn — pull request #1719 by dougalsutherland (2013-02-28 17:29:31+00:00)
Title: StratifiedKFold: remove pointless copy of labels

`cross_validation.StratifiedKFold.__iter__` currently makes a copy of the `labels` attribute, then just `argsort`s it and never uses the copy. There doesn't seem to be any reason to do that; presumably this just accidentally survived a rewrite of the function.