Skip to content

Commit

Permalink
Merge pull request #100 from kunilovskaya/patch-1
Browse files Browse the repository at this point in the history
fix brackets (#94)
  • Loading branch information
jaak-s authored May 11, 2020
2 parents 019182c + 877c2f5 commit 4fb7ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optunity/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def strata_by_labels(labels):
:param labels: iterable, identical values will end up in identical strata
:returns: the strata, as a list of lists
"""
return [list(zip(*g)[0])
return [list(zip(*g))[0]
for _, g in it.groupby(enumerate(labels), op.itemgetter(1))]

def _fold_sizes(num_rows, num_folds):
Expand Down

0 comments on commit 4fb7ad2

Please sign in to comment.