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

Discrepancy Function #317

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tsdate/evaluation.py
Co-authored-by: Peter Ralph <petrel.harp@gmail.com>
  • Loading branch information
hfr1tz3 and petrelharp authored Oct 26, 2023
commit 29b937827a2f88ab09c73d282ef3b88d9dee2a3b
6 changes: 2 additions & 4 deletions tsdate/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,8 @@ def tree_discrepancy(ts, other):

For each node in `ts` the best matching node(s) from `other`
has the longest matching span using `shared_node_spans`.
If either tree sequence contains unary nodes there may be
multiple matches with the same longest shared span
for a single node.
In this case, the best match is the node closest in time.
If there are multiple matches with the same longest shared span
for a single node, the best match is the match that is closest in time.
The discrepancy is:
..math::

Expand Down