Improve PLRsearch yet again 31/19031/31
authorVratko Polak <vrpolak@cisco.com>
Thu, 22 Aug 2019 13:04:34 +0000 (15:04 +0200)
committerPeter Mikus <pmikus@cisco.com>
Fri, 23 Aug 2019 10:31:55 +0000 (10:31 +0000)
commitfbbc47359e3f7b59bbd5a84d85c673374933a50a
treee0c16b9feaf7e588cbe1708a65fe7df629d03868
parent44aaf848a22b4b3b561d883b320b1424be96174b
Improve PLRsearch yet again

Logic improvements for rls1908 and post-pylint fixes:

+ Reduce search time to 30 minutes.
+ Use average instead alternating loads.
+ Rework log/exp avg/stdev from two estimates.
+ Introduce and use pessimistic variance of dual trackers.
+ Introduce safe_exp to use when None does not skip code.
+ Use dot relative imports (instead of disabling pylint).
+ Complete docstrings for simpler functions.
+ Append docstrings to named tuples.
+ Somewhat unify docstrings related to the same arguments.
+ Slightly improve intentation.
+ State named tuples as rtype where used.
+ Add returns and rtype to __repr__ where missing.
+ Return what docstring say (or update them).
+ Explicit copying for vector and matrix values.

Change-Id: I884c68b4839c5df5e8bef95e463666599603a0ff
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/python/PLRsearch/Integrator.py
resources/libraries/python/PLRsearch/PLRsearch.py
resources/libraries/python/PLRsearch/__init__.py
resources/libraries/python/PLRsearch/log_plus.py
resources/libraries/python/PLRsearch/stat_trackers.py
resources/libraries/robot/performance/performance_utils.robot