Skip to content

Commit

Permalink
pep8\'d
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Nov 25, 2016
1 parent 0a9a8e4 commit 7d0f3e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions surprise/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def evaluate(algo, data, measures=['rmse', 'mae'], with_dump=False,
print('-' * 12)
print('-' * 12)


return performances


Expand All @@ -117,7 +116,7 @@ def __str__(self):
# retrieve number of folds. Kind of ugly...
n_folds = [len(values) for values in itervalues(self)][0]

row_format ='{:<8}' * (n_folds + 2)
row_format = '{:<8}' * (n_folds + 2)
s = row_format.format(
'',
*['Fold {0}'.format(i + 1) for i in range(n_folds)] + ['Mean'])
Expand Down

0 comments on commit 7d0f3e0

Please sign in to comment.