-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
129 lines (79 loc) · 2.93 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
'''
config.py
Configure pipeline settings here
Ankur Goswami, [email protected]
'''
import os
'''
Data paths
'''
# Data Directory
data_directory = './data'
# Results Directory
results_directory = './results'
# Source data, change to point to data file
data_path = 'tom_processed'#'shankari_processed'#'jay_march_2016_2_march_2017.timeline' #'/Users/ankur/Coding/PSL-Bipedal/culler_processed'
anchor_truth_path = 'tom_places.tsv'
trip_truth_path = 'tom_trips.tsv'
def join_dir_path(directory, name):
return '/'.join([directory, name])
def make_path(name):
return join_dir_path(data_directory, name)
def make_results_path(name):
return join_dir_path(results_directory, name)
'''
Initial Parsed data observations (Shouldn't need to change)
'''
anchor_ground_path = make_path('anchor_truth.txt')
trip_ground_path = make_path('trip_truth.txt')
mode_ground_path = make_path('mode_truth.txt')
times_ground_path = make_path('times_truth.txt')
dataset_path = make_path('dataset.tsv')
mode_dataset_path = make_path('mode_dataset.tsv')
time_dataset_path = make_path('time_dataset.tsv')
anchor_dataset_path = make_path('anchor_dataset.tsv')
# Segment observations path
seg_path = make_path('segment_obs.txt')
# Mode observations path
mode_path = make_path('mode_obs.txt')
# Start observations path
start_loc_path = make_path('start_location_obs.txt')
# End Observations path
end_loc_path = make_path('end_location_obs.txt')
# Start time observations
start_time_path = make_path('start_time_obs.txt')
# End time observations
end_time_path = make_path('end_time_obs.txt')
# Segment day observations
segment_day_path = make_path('segment_days_obs.txt')
'''
Grounded Nodes
'''
# Grounded anchors
anchors_path = make_path('grounded_anchors.txt')
# Grounded Frequent Trips
frequents_path = make_path('grounded_frequents.txt')
# Grounded FModes
grounded_modes = make_path('grounded_frequent_modes.txt')
grounded_times = make_path('grounded_frequent_times.txt')
trip_modes_times_path = make_path('trip_modes_times.txt')
num_anchors = 50
num_frequent_trips = 50
write_anchors = make_path('write_anchors.txt')
'''
Results settings
'''
# Geosheets names and locations
mode_geosheet_path = make_results_path('mode_pujara_geosheet.csv')
time_geosheet_path = make_results_path('time_pujara_geosheet.csv')
mode_time_geosheet_path = make_results_path('mode_time_geosheet.csv')
markov_chains_results = make_results_path('frequency_results.csv')
# Frequent Trip Times
trip_times_path = make_results_path('trips_times.txt')
# Frequent Trip Modes
trip_modes_path = make_results_path('trips_modes.txt')
# Raw results paths
cleaned_frequent_results_path = make_results_path('cleaned_results.txt')
constructed_frequent_results_path = make_results_path('constructed_results.txt')
cleaned_grouped_results_path = make_results_path('cleaned_grouped_results.txt')
constructed_grouped_results_path = make_results_path('constructed_grouped_results.txt')