Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open('runandtime_results.txt')
- lines = f.read().splitlines()
- times = []
- for line in lines:
- line = line.split('computing_neighbors: ')[1]
- line = line.split('s ')[0]
- times.append(float(line[0:-1]))
- import numpy as np
- defaulttimes = np.array(times[0:40]).reshape(10, 4).transpose()
- tunedtimes = np.array(times[40:]).reshape(10, 4).transpose()
- print "times = ["
- for row in defaulttimes:
- for time in row:
- print time,
- print ";"
- for row in tunedtimes:
- for time in row:
- print time,
- print ";"
- print "];"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement