Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- threshold_value = 8
- cautelous_people_id = []
- uncautelous_people_id = []
- minimum_row_count = 1e6
- for person_id in range(1,40):
- with open(f"experiments/1/{person_id}.csv") as csvfile:
- reader = csv.reader(csvfile, quoting=csv.QUOTE_NONNUMERIC) # change contents to floats
- results_distance = []
- for row in reader: # each row is a list
- if len(row) == 2:
- continue
- results_distance.append(row[1])
- #use print below to decide threshold value
- #print(sum(results_distance)/len(results_distance) - 5)
- if(sum(results_distance)/len(results_distance) - 5 < threshold_value):
- uncautelous_people_id.append(person_id)
- else:
- cautelous_people_id.append(person_id)
- print(cautelous_people_id)
- print(uncautelous_people_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement