From 8458ae130d411a0bb444a79e0fdcfe4990ca3544 Mon Sep 17 00:00:00 2001 From: Kazuki Adachi Date: Tue, 10 Sep 2024 18:42:13 +0900 Subject: [PATCH] fix formatting issue --- ignite/metrics/hsic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ignite/metrics/hsic.py b/ignite/metrics/hsic.py index d5d42fb638d..01fe1520d4c 100644 --- a/ignite/metrics/hsic.py +++ b/ignite/metrics/hsic.py @@ -18,7 +18,8 @@ class HSIC(Metric): + \frac{\mathbf{1}^\top \tilde{\mathbf{K}} \mathbf{11}^\top \tilde{\mathbf{L}} \mathbf{1}}{(B-1)(B-2)} -\frac{2}{B-2}\mathbf{1}^\top \tilde{\mathbf{K}}\tilde{\mathbf{L}} \mathbf{1} \right] - where :math:`B` is the batch size, and :math:`\tilde{\mathbf{K}}` and :math:`\tilde{\mathbf{L}}` are the Gram matrices of + where :math:`B` is the batch size, and :math:`\tilde{\mathbf{K}}` + and :math:`\tilde{\mathbf{L}}` are the Gram matrices of the Gaussian RBF kernel with their diagonal entries being set to zero. HSIC measures non-linear statistical independence between features :math:`X` and :math:`Y`.