8000 fixed: can't compute Gaussian density on a masked observation array by davmre · Pull Request #53 · pykalman/pykalman · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fixed: can't compute Gaussian density on a masked observation array #53

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davmre
Copy link
@davmre davmre commented May 1, 2016

This fixes a small issue: the KalmanFilter.loglikelihood() method automatically parses its input into a MaskedArray, but then tries to directly pass elements of this array to log_multivariate_normal_density(), which raises an error because solve_triangular() does not support masked arrays.
The solution is to pass just the data from the masked array. This is valid because the likelihood is already only computed at timesteps where the observation is not masked.

@Davidhw
Copy link
Davidhw commented Jul 15, 2016

I can confirm that the problem this MR addresses exists and that this MR solves it.

@psarka
Copy link
psarka commented Jan 18, 2017

Is there a reason why this two-liner is not merged? If there is, maybe we can help?

This fixes another open issue #50 and it would be nice to have tests pass, so that other PRs (or forks) would not have to deal with this.

@tuananhle7
Copy link

Any news on this?

ath0m added a commit to ath0m/pykalman that referenced this pull request Sep 30, 2019
fixed: can't compute Gaussian density on a masked observation array
pykalman#53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0