| structure_learning.evaluation.metrics |
index /Users/165421/Documents/code/structure_learning/src/structure_learning/evaluation/metrics.py |
This module provides various metrics for evaluating distributions and graphs.
It includes implementations of metrics such as KL Divergence, Jensen-Shannon Divergence,
Mean Squared Error, Mean Absolute Error, Expected Structural Hamming Distance, and RHat.
These metrics are used to compare distributions or evaluate the similarity between graphs.
Classes:
Metric: Abstract base class for metrics.
KLD: Computes the KL Divergence between two distributions.
JSD: Computes the Jensen-Shannon Divergence between two distributions.
MSE: Computes the Mean Squared Error between two distributions.
MAE: Computes the Mean Absolute Error between two distributions.
SHD: Computes the Expected Structural Hamming Distance between graphs.
RHat: Computes the RHat metric for multiple distributions.
MEP: Computes the Marginal Edge Probabilities from a distribution.
MarginalAncestorProbabilities: Computes the Marginal Ancestor Probabilities from a distribution.
Functions:
entropy: Computes the entropy between two distributions.
kl_divergence: Computes the KL divergence between two distributions.
jensen_shannon_divergence: Computes the Jensen-Shannon divergence between two distributions.
mean_squared_error: Computes the mean squared error between two distributions.
mean_absolute_error: Computes the mean absolute error between two distributions.
expected_shd: Computes the Expected Structural Hamming Distance.
rhat: Computes the RHat metric for the provided distributions and measurements.
marginal_edge_probabilities: Computes the marginal edge probabilities from a distribution.
rhat_edge: Computes the RHat metric for edge probabilities across multiple distributions.
marginal_ancestor_probabilities: Computes the marginal ancestor probabilities from a distribution.
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||
| Data | ||
| List = typing.List Union = typing.Union | ||