Skip to content

Default MvNormal covariance doesn't make sense #833

@ricardoV94

Description

@ricardoV94

dtype = pytensor.config.floatX if self.dtype == "floatX" else self.dtype
if mean is None:
mean = np.array([0.0], dtype=dtype)
if cov is None:
cov = np.array([[1.0]], dtype=dtype)
return super().__call__(mean, cov, size=size, **kwargs)

It is not allowed to broadcast with mu so it should be aware of its shape. And should probably be eye(mu.shape[-1]), not ones. Or we can just remove it, since numpy does not provide a default covariance either?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions