Skip to content

Commit

Permalink
skeleton for KL divergence module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Markham committed Jan 17, 2024
1 parent 64aa977 commit 0658986
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/cstrees/evaluate.py
Original file line number Diff line number Diff line change
@@ -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
<https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence>`_.
"""
divergence = 0
return divergence

0 comments on commit 0658986

Please sign in to comment.