From 06589869ad022824a3202b1d5b1cc4fe45f648e9 Mon Sep 17 00:00:00 2001 From: Alex Markham Date: Wed, 17 Jan 2024 22:12:49 +0100 Subject: [PATCH] skeleton for KL divergence module --- src/cstrees/evaluate.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/cstrees/evaluate.py diff --git a/src/cstrees/evaluate.py b/src/cstrees/evaluate.py new file mode 100644 index 0000000..a2352b1 --- /dev/null +++ b/src/cstrees/evaluate.py @@ -0,0 +1,13 @@ +"""Evaluate estimated CStrees.""" +import cstrees + + +def kl_divergence(estimated: CStree, true: CStree) -> float: + """Quantify how distribution of estimated CStree differs from that of true CStree. + + Notes: + See the `KL divergence + `_. + """ + divergence = 0 + return divergence