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

BUG Initialize adapt_full with a diagonal covariance matrix rather than ones. #3891

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

twiecki
Copy link
Member

@twiecki twiecki commented Apr 27, 2020

No description provided.

@twiecki twiecki requested a review from eigenfoo April 27, 2020 15:55
Copy link
Member

@eigenfoo eigenfoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, not sure how that slipped by me the first time! This looks good: will merge once tests pass.

@fonnesbeck
Copy link
Member

Oops. Good catch.

@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #3891 into master will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3891   +/-   ##
=======================================
  Coverage   90.71%   90.71%           
=======================================
  Files         135      135           
  Lines       21317    21317           
=======================================
  Hits        19338    19338           
  Misses       1979     1979           
Impacted Files Coverage Δ
pymc3/sampling.py 84.52% <0.00%> (ø)

@eigenfoo eigenfoo merged commit 60cca23 into master Apr 27, 2020
@eigenfoo eigenfoo deleted the cov_diag_sample_init branch April 27, 2020 16:57
@fonnesbeck
Copy link
Member

Not sure if its a coincidence, but I've been getting sampling failures like this after updating:

ValueError: Mass matrix contains zeros on the diagonal. 
The derivative of RV `sigma_log__`.ravel()[0] is zero.
The derivative of RV `sigma_log__`.ravel()[1] is zero.
The derivative of RV `sigma_log__`.ravel()[2] is zero.
The derivative of RV `sigma_log__`.ravel()[3] is zero.
The derivative of RV `sigma_log__`.ravel()[4] is zero.
The derivative of RV `sigma_log__`.ravel()[5] is zero.
The derivative of RV `sigma_log__`.ravel()[6] is zero.
The derivative of RV `sigma_log__`.ravel()[7] is zero.

@twiecki
Copy link
Member Author

twiecki commented Apr 27, 2020

Using this init?

@fonnesbeck
Copy link
Member

Yeah, but now it seems to be happening for other init methods, so it must have been a coincidence. Please ignore.

@ColCarroll
Copy link
Member

Still might want to init this like the diagonal + jitter (i.e., use the mean plus some random noise -- shoudl be a copy/paste)

@ColCarroll
Copy link
Member

I can get to it later if no one else does!

@twiecki
Copy link
Member Author

twiecki commented Apr 27, 2020 via email

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