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

Decomp_cholesky bug #5

Open
vlall opened this issue Jan 28, 2019 · 1 comment
Open

Decomp_cholesky bug #5

vlall opened this issue Jan 28, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@vlall
Copy link
Collaborator

vlall commented Jan 28, 2019

This error terminates the leaner and happens on ~20% of runs for active learner and 60-70% of the time on the BALD learner.. The higher the budget, the more likely you encounter the error. It usually occurs in the 46th+ iteration of training, but sometimes occurs as soon as iteration 12.

My config was:

POOL_SIZE = 500
BUDGET = 50
BASE_KERNELS = ["PER", "LIN", "K"]
DEPTH = 2

This occurs with RandomStrategy and BALD

  File "learn_from_trial.py", line 47, in <module>
    learner.update(correct, guess)
  File "/Users/vlall/prog/dev/bams/bams/learners.py", line 60, in update
    self.models.update()
  File "/Users/vlall/prog/dev/bams/bams/models.py", line 142, in update
    model.update()
  File "/Users/vlall/prog/dev/bams/bams/models.py", line 35, in update
    self.gp.compute(self.data.x, yerr=self.yerr)
  File "/Users/vlall/.virtualenvs/bams/lib/python2.7/site-packages/george/gp.py", line 309, in compute
    self.solver.compute(self._x, yerr, **kwargs)
  File "/Users/vlall/.virtualenvs/bams/lib/python2.7/site-packages/george/solvers/basic.py", line 68, in compute
    self._factor = (cholesky(K, overwrite_a=True, lower=False), False)
  File "/Users/vlall/.virtualenvs/bams/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py", line 91, in cholesky
    check_finite=check_finite)
  File "/Users/vlall/.virtualenvs/bams/lib/python2.7/site-packages/scipy/linalg/decomp_cholesky.py", line 40, in _cholesky
    "definite" % info)
numpy.linalg.linalg.LinAlgError: 2-th leading minor of the array is not positive definite```

Mac 10.14
Python 2.7.10
@vlall vlall changed the title Hessian bug Decomp_cholesky bug Jan 28, 2019
@vlall vlall added the bug Something isn't working label Apr 24, 2019
@vlall
Copy link
Collaborator Author

vlall commented Apr 24, 2019

Changing the BIC to true avoid this bit of code, which is the purpose of the branch here: https://github.com/Dallinger/bams/tree/bic-true.

See:

def log_evidence(self, bic=False):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant