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

Switch to only storing fixed node data in Prior #123

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hyanwong
Copy link
Member

I realised belatedly that fixed nodes do not need to store likelihood values for the prior, but times - i.e. all the likelihood is concentrated at a precise time (not just a time slice, but a floating point time value). Additionally, we don't want to change this during the inside or outside pass. So I've changed the NodeGridValues class to take out the fixed node stuff, and created a new Prior subclass that adds the ability to store a time (not a likelihood) for fixed nodes.

This is not for merging yet - it is the first iteration of incorporating non-contemporaneous samples into tsdate.

@codecov
Copy link

codecov bot commented Feb 29, 2020

Codecov Report

Merging #123 into master will increase coverage by 0.35%.
The diff coverage is 98.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
+ Coverage   91.58%   91.94%   +0.35%     
==========================================
  Files           5        5              
  Lines        1081     1067      -14     
==========================================
- Hits          990      981       -9     
+ Misses         91       86       -5
Impacted Files Coverage Δ
tsdate/date.py 92.98% <98.57%> (+0.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f0c972...de1ae7f. Read the comment docs.

@hyanwong hyanwong force-pushed the store-fixed-node-time-not-lik branch 2 times, most recently from 606d4ae to 7187277 Compare March 3, 2020 13:34
Prior is now a subclass of NodeGridValues, with the ability to store a time (*not* a likelihood) for fixed nodes.
@hyanwong hyanwong force-pushed the store-fixed-node-time-not-lik branch from 7187277 to de1ae7f Compare March 3, 2020 17:59
@benjeffery benjeffery changed the base branch from master to main December 2, 2020 10:34
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.

1 participant