root_mean_squared_error#

caf.toolkit.math_utils.root_mean_squared_error(targets, achieved)[source]#

Calculate the root-mean-squared error between targets and achieved.

Two lists of corresponding values are zipped together, differences taken (residuals) and the RMSE calculated.

Parameters:
  • targets (Collection[ndarray | COO]) – A list of all the targets that achieved should have reached. Must be the same length as achieved.

  • achieved (Collection[ndarray | COO]) – A list of all the achieved values. Must be the same length as targets

Returns:

A float value indicating the total root-mean-squared-error of targets and achieved

Return type:

rmse

Raises:

ValueError: – If targets and achieved are not the same length