brainpy.losses.mean_squared_log_error#

brainpy.losses.mean_squared_log_error(y_true, y_pred, axis=None)[source]#

Computes the mean squared logarithmic error between y_true and y_pred.

Parameters
  • y_true – a tensor of shape (d0, .. dN-1).

  • y_pred – a tensor of shape (d0, .. dN-1).

  • keep_axis – a sequence of the dimensions to keep, use None to return a scalar value.

Returns

tensor of shape (d_i, …, for i in keep_axis) containing the mean squared error.