I am looking for a good way to compare two dictionaries that contain matrix information. So, the structure of my dictionaries is as follows: both dictionaries have the same keys:
dict_1 = {("a","a"):0.01, ("a","b"): 0.02, ("a","c"): 0.00015, ...
dict_2 = {("a","a"):0.01, ("a","b"): 0.018, ("a","c"): 0.00014, ...
If I have matrices, i.e. list listings i can use numpy.allclose. Is there something similar for dictionaries or is there a good way to turn my dictionaries into such matrices?
Thank you for your help.
source
share