forked from testingautomated-usi/maxitwo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerge_maps_simulators_quality_metrics.sh
executable file
·57 lines (49 loc) · 2.41 KB
/
merge_maps_simulators_quality_metrics.sh
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
#!/bin/bash
# bounds for each quality metric computed with plot_quality_metrics_map.py
folder_name=$1
quality_metrics_merge=$2
min_bound_sa=$3
max_bound_sa=$4
min_bound_lp=$5
max_bound_lp=$6
min_bound_sp=$7
max_bound_sp=$8
min_bound_max_lp=$9
max_bound_max_lp=${10}
if test $# -lt 10 ; then echo 'Provide a folder_name in logs | quality_metrics_merge (avg|min|max) | Min bound std_steering_angles | Max bound std_steering_angles Min bound std_lateral_positions | Max bound std_lateral_positions | Min bound std_speeds | Max bound std_speeds | Min bound max_lateral_positions | Max bound max_lateral_positions' ; exit 1 ; fi
if [ ! -d "logs/$folder_name" ]; then
echo "logs/$folder_name does not exist."
exit 1
fi
python merge_mapelites.py \
--folder logs/$folder_name \
--filepaths merged_mapelites_beamng_search_mapelites_migration_beamng_udacity_search merged_mapelites_udacity_search_mapelites_migration_udacity_beamng_search \
--quality-metric std_steering_angles \
--min-quality-metric $min_bound_sa \
--max-quality-metric $max_bound_sa \
--quality-metric-merge $quality_metrics_merge \
--output-dir merged_merged_beamng_udacity
python merge_mapelites.py \
--folder logs/$folder_name \
--filepaths merged_mapelites_beamng_search_mapelites_migration_beamng_udacity_search merged_mapelites_udacity_search_mapelites_migration_udacity_beamng_search \
--quality-metric std_lateral_positions \
--min-quality-metric $min_bound_lp \
--max-quality-metric $max_bound_lp \
--quality-metric-merge $quality_metrics_merge \
--output-dir merged_merged_beamng_udacity
python merge_mapelites.py \
--folder logs/$folder_name \
--filepaths merged_mapelites_beamng_search_mapelites_migration_beamng_udacity_search merged_mapelites_udacity_search_mapelites_migration_udacity_beamng_search \
--quality-metric std_speeds \
--min-quality-metric $min_bound_sp \
--max-quality-metric $max_bound_sp \
--quality-metric-merge $quality_metrics_merge \
--output-dir merged_merged_beamng_udacity
python merge_mapelites.py \
--folder logs/$folder_name \
--filepaths merged_mapelites_beamng_search_mapelites_migration_beamng_udacity_search merged_mapelites_udacity_search_mapelites_migration_udacity_beamng_search \
--quality-metric max_lateral_positions \
--min-quality-metric $min_bound_max_lp \
--max-quality-metric $max_bound_max_lp \
--quality-metric-merge $quality_metrics_merge \
--output-dir merged_merged_beamng_udacity