Is your feature request related to a problem? Please describe.
Energy distance is computationally expensive. But third term of energy distance metric does not change across models so could just cache it and reuse. Should save around one third of runtime of energy distance.
Is your feature request related to a problem? Please describe. Energy distance is computationally expensive. But third term of energy distance metric does not change across models so could just cache it and reuse. Should save around one third of runtime of energy distance.