aboutsummaryrefslogtreecommitdiffstats
path: root/PyPI/MLRsearch
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-10-19 10:47:48 +0200
committerVratko Polak <vrpolak@cisco.com>2023-10-19 09:38:33 +0000
commit7a27faf661cf54a84ef4ee0984e12879a223ce32 (patch)
tree07b33102eaea074c74a53264934c3fbfdfd4b96d /PyPI/MLRsearch
parent351c5e1e92f31465e1a4523d3fe9b7701457a503 (diff)
feat(MLRseach): Update to v8 conditional throughput
Hopefully, with CSIT config values, PDR lower than NDR will not happen. + Bump duration_sum default to an odd number, so users are not surprised by not seeing standard median behavior. For CSIT this should not matter, overheads hide ties and number of trials (at least for STL) should stay the same. Change-Id: Id7130f978c31e71227499612424007c473bcfac2 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'PyPI/MLRsearch')
-rw-r--r--PyPI/MLRsearch/README.rst24
-rw-r--r--PyPI/MLRsearch/setup.py2
2 files changed, 12 insertions, 14 deletions
diff --git a/PyPI/MLRsearch/README.rst b/PyPI/MLRsearch/README.rst
index 92c2afe484..de26fadfa4 100644
--- a/PyPI/MLRsearch/README.rst
+++ b/PyPI/MLRsearch/README.rst
@@ -16,7 +16,7 @@ is only a symlink to the original place of tightly coupled CSIT code.
Change log
----------
-1.0.0: Logic improvements, independent selectors, exceed ratio support,
+1.1.0: Logic improvements, independent selectors, exceed ratio support,
better width rounding, conditional throughput as output.
Implementation relies more on dataclasses, code split into smaller files.
API changed considerably, mainly to avoid long argument lists.
@@ -106,7 +106,7 @@ This is the screen capture of interactive python interpreter
... relative_width=0.005,
... initial_trial_duration=1.0,
... final_trial_duration=1.0,
- ... duration_sum=61.0,
+ ... duration_sum=21.0,
... preceding_targets=2,
... expansion_coefficient=2,
... )
@@ -122,29 +122,27 @@ This is the screen capture of interactive python interpreter
>>> result = controller.search(measurer=Hard1MppsMeasurer(), debug=print_dot)
....................................................................................
....................................................................................
- ....................................................................................
- ....................................................................................
- ....................................................................................
- ....................................................................................
- ...>>> print(result)
+ ...................>>> print(result)
{SearchGoal(loss_ratio=0.0, exceed_ratio=0.005, relative_width=0.005, initial_trial_
- duration=1.0, final_trial_duration=1.0, duration_sum=61.0, preceding_targets=2, expa
- nsion_coefficient=2): fl=997497.6029392382,s=(gl=61.0,bl=0.0,gs=0.0,bs=0.0), SearchG
- oal(loss_ratio=0.005, exceed_ratio=0.005, relative_width=0.005, initial_trial_durati
- on=1.0, final_trial_duration=1.0, duration_sum=61.0, preceding_targets=2, expansion_
- coefficient=2): fl=1002508.6747611101,s=(gl=61.0,bl=0.0,gs=0.0,bs=0.0)}
+ duration=1.0, final_trial_duration=1.0, duration_sum=21.0, preceding_targets=2, expa
+ nsion_coefficient=2, fail_fast=True): fl=997497.6029392382,s=(gl=21.0,bl=0.0,gs=0.0,
+ bs=0.0), SearchGoal(loss_ratio=0.005, exceed_ratio=0.005, relative_width=0.005, init
+ ial_trial_duration=1.0, final_trial_duration=1.0, duration_sum=21.0, preceding_targe
+ ts=2, expansion_coefficient=2, fail_fast=True): fl=1002508.6747611101,s=(gl=21.0,bl=
+ 0.0,gs=0.0,bs=0.0)}
>>> print(f"NDR conditional throughput: {float(result[ndr_goal].conditional_throughp
ut)}")
NDR conditional throughput: 997497.6029392382
>>> print(f"PDR conditional throughput: {float(result[pdr_goal].conditional_throughp
ut)}")
PDR conditional throughput: 1000000.6730730429
+ >>>
Operation logic
---------------
The currently published `IETF draft`_ describes the logic of version 0.4,
-the logic of version 1.0 will be descibed better in the next draft version (-05).
+the logic of version 1.1 will be descibed better in the next draft version (-05).
.. _CSIT: https://wiki.fd.io/view/CSIT
.. _fd.io: https://fd.io/
diff --git a/PyPI/MLRsearch/setup.py b/PyPI/MLRsearch/setup.py
index 1906ff3e87..f824d15fd6 100644
--- a/PyPI/MLRsearch/setup.py
+++ b/PyPI/MLRsearch/setup.py
@@ -16,7 +16,7 @@ with open(path.join(here, u"README.rst"), encoding=u"utf-8") as f:
setup(
name=u"MLRsearch",
- version=u"1.0.0", # This is currently the only place listing the version.
+ version=u"1.1.0", # This is currently the only place listing the version.
description=u"Library for speeding up binary search using shorter measurements.",
long_description=long_description,
long_description_content_type=u"text/x-rst",