aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorgdamms <damguillotin@gmail.com>2024-06-25 09:31:24 +0200
committergdamms <damguillotin@gmail.com>2024-06-25 09:31:24 +0200
commit1011f68c3eafb8b468cf1df23117b98c7c7b55ed (patch)
treeccfc0bcddeb5402d2001b08e9a283ed1ab7f36cf /main.py
parent47b3bc6fbfed3360e7526dcf5275f9175e0fde10 (diff)
downloaddiffusion-mnist-1011f68c3eafb8b468cf1df23117b98c7c7b55ed.tar.gz
diffusion-mnist-1011f68c3eafb8b468cf1df23117b98c7c7b55ed.zip
implement ation JS divergence
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.py b/main.py
index 81f832d..7c7daa1 100644
--- a/main.py
+++ b/main.py
@@ -423,5 +423,11 @@ if __name__ == '__main__':
kl_score = kl(reals, fakes)
print(f"KL divergence: {kl_score}")
+ rkl_score = kl(fakes, reals)
+ print(f"Reverse KL divergence: {rkl_score}")
+
+ jsd_score = jsd(reals, fakes)
+ print(f"Jensen-Shannon divergence: {jsd_score}")
+
# plt.show()