Guest User

Untitled

a guest
Mar 9th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1.   counter = 0
  2.   for row in csvReader:
  3.     counter += 1
  4.     #timestamp = datetime.datetime.strptime(row[0], DATE_FORMAT)
  5.     x_response = float(row[0])
  6.     y_response = float(row[1]) #row[1]
  7.    
  8.     xy = [int(x_response*1000),int(y_response*1000)]
  9.     vector = np.array(xy)    
  10.     radius = int(50)    
  11.    
  12.     modelInput = {
  13.     "vector": (vector,radius)
  14.     }
  15.    
  16.     result = model.run(modelInput)
  17.    
  18.     '''
  19.    result = model.run({
  20.      #"timestamp": timestamp,
  21.      "x_Response": x_response,
  22.      "y_Response": y_response,
  23.    })
  24.    '''
  25.     #result.metrics = metricsManager.update(result)
  26.  
  27.     if counter % 100 == 0:
  28.       print ("Read %i lines..." % counter)
Advertisement
Add Comment
Please, Sign In to add comment