Rudimentary optimization with APM/QA.

Added script 'apm_quality_assessment_optimize' for finding parameters
that minimize a custom function of the scores generated by APM-QA. The
script reuses the existing functionality for filtering the data on

To archieve that, some modularization has been done: the part from
apm_quality_assessment_export that reads in data into a
pandas.DataFrame has been moved into quality_assessment.collect_data.

TESTED = though extensive manual tests. Unit tests for the user
scripts and 'collect_data' are missing, because we don't have a test
framework for loading/exporting fake data.


Change-Id: I5521b952970243da05fc4db1b9feef87a2e5ccad
Commit-Queue: Alex Loiko <>
Reviewed-by: Alessio Bazzica <>
Cr-Original-Commit-Position: refs/heads/master@{#19780}
Cr-Mirrored-Commit: 357429dd1ea9c53adb94c8d5e5bfcc960f3e95ee
6 files changed