The new method shows the difference between the store's current state of params and the latest committed params. It returns a dictionary where keys are the keys of params whose values have changed.
Dictionary values indicate the old_value of the param and the new_value of the param. A new param will only show the new_value. A deleted param will only show the old_value.
For example: {"foo": {"old_value": 42, "new_value": 1337}}"""
This PR addresses issue https://github.com/entropy-lab/entropy/issues/243. It introduces a new method called
diff()
to the ParamStore ABC and implementation.The new method shows the difference between the store's current state of params and the latest committed params. It returns a dictionary where keys are the keys of params whose values have changed.
Dictionary values indicate the
old_value
of the param and thenew_value
of the param. A new param will only show thenew_value
. A deleted param will only show theold_value
.For example:
{"foo": {"old_value": 42, "new_value": 1337}}"""