Commit 6cbcd44e authored by Taddeus Kroes's avatar Taddeus Kroes

Prettified grid-search print format a bit.

parent f8f630f0
......@@ -102,7 +102,7 @@ i = 0
s = ' c\y'
for y in Y:
s += '| %f' % y
s += ' | %f' % y
s += '\n'
......@@ -110,12 +110,13 @@ for c in C:
s += ' %7s' % c
for y in Y:
s += '| %8d' % int(round(results[i] * 100))
s += ' | %8d' % int(round(results[i] * 100))
i += 1
s += '\n'
s += '\nBest result: %.3f%% for C = %f and gamma = %f' % best[:3]
s += '\nBest result: %.3f%% for C = %f and gamma = %f' \
% ((best[0] * 100,) + best[1:3])
print 'Saving results...'
f = open(results_file, 'w+')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment