comparison trafficintelligence/moving.py @ 1219:8a626226793e

update where optimization uses either nomad-parameter file depending on optimizing 1 or 2 steps
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 19 Jun 2023 17:09:56 -0400
parents 1f0b1fc172f8
children 69b531c7a061
comparison
equal deleted inserted replaced
1218:1f0b1fc172f8 1219:8a626226793e
1361 'cyclist', 1361 'cyclist',
1362 'bus', 1362 'bus',
1363 'truck', 1363 'truck',
1364 'automated'] 1364 'automated']
1365 1365
1366 coco2UserTypes = {1: 2, 2: 4, 3: 1, 6: 5, 8: 6} 1366 coco2UserTypes = {0: 2, 1: 4, 2: 1, 5: 5, 7: 6}
1367 cocoUserTypeNames = {1: person, 1367 cocoUserTypeNames = {0: 'person',
1368 2: bicycle, 1368 1: 'bicycle',
1369 3: car, 1369 2: 'car',
1370 4: motorcycle, 1370 3: 'motorcycle',
1371 6: bus, 1371 5: 'bus',
1372 7: train, 1372 6: 'train',
1373 8: truck} 1373 7: 'truck'}
1374 1374
1375 userType2Num = utils.inverseEnumeration(userTypeNames) 1375 userType2Num = utils.inverseEnumeration(userTypeNames)
1376 1376
1377 class CarClassifier: 1377 class CarClassifier:
1378 def predict(self, hog): 1378 def predict(self, hog):