mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Fixing overall score generation in telemetry
Updating overall score generation function to handle zero values.
This commit is contained in:
parent
d627c778e5
commit
c0bb30e12d
@ -202,9 +202,11 @@ def parse_telemetry_results(filepath):
|
||||
|
||||
|
||||
def special_average(values):
|
||||
"""Like Geometric mean but for negative numbers!"""
|
||||
"""Overall score calculation. Tries to accound for large differences
|
||||
between different pages."""
|
||||
negs = [v < 0 for v in values]
|
||||
abs_logs = [math.log(av, 10) for av in map(abs, values)]
|
||||
abs_logs = [(av and math.log(av, 10) or av)
|
||||
for av in map(abs, values)]
|
||||
signed_logs = []
|
||||
for lv, n in zip(abs_logs, negs):
|
||||
if n:
|
||||
|
Loading…
x
Reference in New Issue
Block a user