Produit de point de dictionnaire Python

dot_product = sum(dict_1[key]*dict_2.get(key, 0) for key in dict_1)
DS in Training