Explainable Ai, Counterfactual, Machine Learning.
loss function: Equation 1 where f is the model and x is the original instance (to be explained counterfactually) and x’ is the potential counterfactual instance. y’ is the desired output and d is the distance metric measuring some sort of similarity between the original and counterfactual