Improve PLRsearch yet again 75/21475/1
authorVratko Polak <vrpolak@cisco.com>
Thu, 22 Aug 2019 13:04:34 +0000 (15:04 +0200)
committerVratko Polak <vrpolak@cisco.com>
Fri, 23 Aug 2019 11:02:39 +0000 (11:02 +0000)
commit3d1e8a1fdfa0ec734adf7cc4370e955508882fdc
treeb10d7c27ff3c10276b3fb800a24b7e14fa4401cb
parent51511689eb9f93134878c314ba0349f28ef2ec4f
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>
(cherry picked from commit fbbc47359e3f7b59bbd5a84d85c673374933a50a)
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