nvflare.client.utils module

numerical_params_diff(original: Dict, new: Dict) Dict[source]

Calculates the numerical parameter difference.

Parameters:
  • original – A dict of numerical values.

  • new – A dict of numerical values.

Returns:

A dict with common keys that exist in both original dict and new dict, values are the difference between original and new.