Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- counter = 0
- for row in csvReader:
- counter += 1
- #timestamp = datetime.datetime.strptime(row[0], DATE_FORMAT)
- x_response = float(row[0])
- y_response = float(row[1]) #row[1]
- xy = [int(x_response*1000),int(y_response*1000)]
- vector = np.array(xy)
- radius = int(50)
- modelInput = {
- "vector": (vector,radius)
- }
- result = model.run(modelInput)
- '''
- result = model.run({
- #"timestamp": timestamp,
- "x_Response": x_response,
- "y_Response": y_response,
- })
- '''
- #result.metrics = metricsManager.update(result)
- if counter % 100 == 0:
- print ("Read %i lines..." % counter)
Advertisement
Add Comment
Please, Sign In to add comment