Skip to content

Commit b07c091

Browse files
committed
Add missing minus sign in log score docstring
1 parent bef91de commit b07c091

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bayesflow/scores/multivariate_normal_score.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@serializable(package="bayesflow.scores")
1313
class MultivariateNormalScore(ParametricDistributionScore):
14-
r""":math:`S(\hat p_{\mu, \Sigma}, \theta; k) = \log( \mathcal N (\theta; \mu, \Sigma))`
14+
r""":math:`S(\hat p_{\mu, \Sigma}, \theta; k) = -\log( \mathcal N (\theta; \mu, \Sigma))`
1515
1616
Scores a predicted mean and covariance matrix with the log-score of the probability of the materialized value.
1717
"""

bayesflow/scores/parametric_distribution_score.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@serializable(package="bayesflow.scores")
99
class ParametricDistributionScore(ScoringRule):
10-
r""":math:`S(\hat p_\phi, \theta; k) = \log(\hat p_\phi(\theta))`
10+
r""":math:`S(\hat p_\phi, \theta; k) = -\log(\hat p_\phi(\theta))`
1111
1212
Base class for scoring a predicted parametric probability distribution with the log-score
1313
of the probability of the realized value.
@@ -26,7 +26,7 @@ def score(self, estimates: dict[str, Tensor], targets: Tensor, weights: Tensor =
2626
r"""
2727
Computes the log-score for a predicted parametric probability distribution given realized **targets**.
2828
29-
:math:`S(\hat p_\phi, \theta; k) = \log(\hat p_\phi(\theta))`
29+
:math:`S(\hat p_\phi, \theta; k) = -\log(\hat p_\phi(\theta))`
3030
"""
3131
scores = -self.log_prob(x=targets, **estimates)
3232
score = self.aggregate(scores, weights)

0 commit comments

Comments
 (0)