Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for row in csvReader:
- counter += 1
- x_response = float(row[0])*100
- y_response = float(row[1])*100 #row[1]
- this_point = [x_response,y_response]
- vector = np.array(this_point).astype(int)
- try:
- last_point
- except:
- last_point = None
- radius = calculate_radius(last_point,this_point)
- last_point = copy.deepcopy(this_point)
- modelInput = {
- "vector": (vector,radius)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement