commit | fe855b22231fe6bb2c6a2ca488e21af7ada2519a | [log] [tgz] |
---|---|---|
author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | Fri Jun 02 18:40:10 2023 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 05 21:05:00 2023 +0000 |
tree | edeb077d208729245cbe9a476f1d497482e6e3c2 | |
parent | fe32a06d2c77ebdb0b1cecdfd15440d97803fc42 [diff] |
crosperf: Remove benchmark scipy dependency At present, we use scipy.norm's isf function (inverse survival function). This commit introduces a hand-rolled replacement that uses a numerical interpolation technique to compute the inverse survival function. Testing this automatically is not easy if we wish to remove scipy, but with 0.01 pitch, we see about 4 digits of accuracy. Mind you, we do not handle the infinite cases, but this is not a problem for the use case presented in this function. BUG=b:284489250 TEST=doctest TEST=check scipy.norm.isf(xs) - CachedISF().isf(xs) Change-Id: I90bda8929a4034052c1457ae9f51f162eeaa5bc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4585444 Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com> Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
toolchain-utils
Various utilities used by the ChromeOS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.