Changeset 9 for trunk/bin/sampler
- Timestamp:
- 07/10/15 14:03:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/sampler
r5 r9 37 37 help='JSON representation of echo timing cases.') 38 38 parser.add_argument('--no-tcpts', action='store_true', help='Disbale TCP timestamp profiling') 39 parser.add_argument('--no-control', action='store_true', help='Do not collect separate control data. Instead, synthesize it from test and train data.') 39 40 parser.add_argument('session_name', default=None, 40 41 help='Name for the sampler session (used in output filenames)') … … 133 134 time.sleep(0.5) # ensure sniffer is fully ready and our process is migrated 134 135 136 if options.no_control: 137 num_control = 0 138 else: 139 num_control = int(num_samples*2/5) 140 141 num_train = int((num_samples-num_control)/3) 142 num_test = num_samples-num_train-num_control 143 144 sample_types = [('train',num_train), 145 ('train_null',num_control), 146 ('test',num_test)] 147 135 148 sid = 0 136 sample_types = [('train',int(num_samples*1/5)),137 ('train_null',int(num_samples*2/5)),138 ('test',int(num_samples*2/5)),139 ('test_null',0)]140 149 report_interval = 20 141 150 start = time.time() … … 183 192 print("associate time:", end-start) 184 193 194 if options.no_control: 195 print("TODO: implement control synthesizing!") 196 185 197 start = time.time() 186 198 num_probes = analyzeProbes(db)
Note: See TracChangeset
for help on using the changeset viewer.