Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multivariate normal #117

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix docs typo
  • Loading branch information
danielward27 committed Nov 14, 2023
commit 22cdc0ce17f2638a077f3d6211df38287ef3602c
6 changes: 4 additions & 2 deletions flowjax/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def _sample(self, key, condition=None):
return self.bijection.transform(base_sample, condition)

def _sample_and_log_prob(
self, key: Array, condition=None,
self,
key: Array,
condition=None,
): # TODO add overide decorator when python>=3.12 is common
# We override to avoid computing the inverse transformation.
base_sample, log_prob_base = self.base_dist._sample_and_log_prob(key, condition)
Expand Down Expand Up @@ -406,7 +408,7 @@ class MultivariateNormal(AbstractTransformed):
Args:
loc (ArrayLike): The location/mean parameter vector. If this is scalar it is
broadcast to the dimension implied by the covariance matrix.
covariance (ArrayLike, optional): Covariance matrix. Defaults to None.
covariance (ArrayLike, optional): Covariance matrix.
"""

base_dist: StandardNormal
Expand Down