-
Notifications
You must be signed in to change notification settings - Fork 10
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
Better timeslices #233
base: main
Are you sure you want to change the base?
Better timeslices #233
Conversation
This is super @hyanwong!! |
Yes, I could add MSE / Spearmans to the "unit" tests at https://github.com/tskit-dev/tsdate/blob/main/tests/test_accuracy.py I guess. The tests there are just to check that we don't accidentally introduce worse performance. |
Never mind, I merged it anyway, as it's only in the test suite. |
bb7b048
to
f9ed454
Compare
I think we should merge this anyway: looks like we might move away from a grid of timepoints to the variational method, but I don't want the fixed grid method to be completely forgotten about and consigned to the bin because of a timeslice issue. |
f9ed454
to
748755a
Compare
Finally fixes tskit-dev#7 and produces a much nicer looking fit for large tree sequences, but leads to slightly worse performance for tiny tree sequences such as those tested in test_accuracy.py, because of tskit-dev#230. When we fix that, this PR should provide uniformly better performance, I hope
748755a
to
67756f7
Compare
Annoyingly this does seem to make accuracy worse in simple cases. Perhaps we should think about fixing the prior first, then return to this. |
Finally fixes #7 and produces a much nicer looking fit for large tree sequences, but leads to slightly worse performance for tiny tree sequences such as those tested in test_accuracy.py, because of #230. When we fix that, this PR should provide uniformly better performance, I hope