multivariate_normal sample fails for large matrix
See original GitHub issuefrom numpy.random import RandomState
s = RandomState(0)
N = 50000
m = s.randn(N)
G = s.randn(N, 100)
K = G.dot(G.T)
u = s.multivariate_normal(m, K)
prints init_dgesdd failed init
.
Additional information
> python --version
Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
> python -c "import numpy; print(numpy.__version__)"
1.11.1
> python -c "import scipy; print(scipy.__version__)"
0.18.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Lesson 4: Multivariate Normal Distribution - STAT ONLINE
This lesson is concerned with the multivariate normal distribution. ... is going to be approximately multivariate normally distributed for large samples.
Read more >Sampling from a Multivariate Normal Distribution
In this post I want to describe how to sample from a multivariate normal distribution following section A.2 Gaussian Identities of the book...
Read more >mvtnorm: Multivariate Normal and t Distributions
If the degrees of freedom ν (the argument df) is larger than 2, then Cov(X) = Σν/(ν − 2). Furthermore, in this case...
Read more >Why Multivariate Distribution with Covariance Matrix with ...
The recipe you're using assumes that your covariance matrix is full rank. Cholesky decomposition is only unique if Σ is positive definite.
Read more >MemoryError when generating numpy.MultivariateNormal
How could I generate a random dataset this large with these specifications without getting this error? Edit: Here's my stack trace: Traceback (...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Numpy also does not currently support lapack64: gh-5906
LAPACK is typically compiled with 32-bit integers. I don’t know if any linux distribution offers 64-bit lapack as a package (e.g. ubuntu does not). . But Numpy should raise exception for failed LAPACK init, not just print error messages.