entropy-lab / entropy

BSD 3-Clause "New" or "Revised" License
30 stars 13 forks source link

New ParamStore method: diff() #312

Closed urig closed 2 years ago

urig commented 2 years ago

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 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}}"""

github-actions[bot] commented 2 years ago

Unit Test Results

264 tests   259 :heavy_check_mark:  53s :stopwatch:     1 suites      5 :zzz:     1 files        0 :x:

Results for commit 26360d35.

:recycle: This comment has been updated with latest results.