quantus.functions.loss_func module
This module holds a collection of loss functions i.e., ways to measure the loss between two inputs.
- quantus.functions.loss_func.mse(a: array, b: array, **kwargs) float
Calculate Mean Squared Error between two images (or explanations).
- Parameters:
- a: np.ndarray
Array to calculate MSE with.
- b: np.ndarray
Array to calculate MSE with.
- kwargs: optional
Keyword arguments.
- normalise_mse: boolean
Indicates whether to returned a normalised MSE calculation or not.
- Returns:
- float:
A floating point of MSE.