Skip to content

Remove tsdate.evaluation module - #522

Merged
hyanwong merged 3 commits into
tskit-dev:mainfrom
hyanwong:remove-evaluation-module
Nov 2, 2026
Merged

hyanwong merged 3 commits into
tskit-dev:mainfrom
hyanwong:remove-evaluation-module

Conversation

@hyanwong

Copy link
Copy Markdown
Member

The accuracy diagnostics in tsdate/evaluation.py (node_coverage, mutation_coverage, mutations_time) were unused and are superseded by the scripts in evaluation/.

  • remove_edges / unsupported_edges (polytomy test helpers, used by tests/test_inference.py) move to tests/utility_functions.py
  • afs_bias / allele_frequency_spectra (no equivalent in the new framework) move to a new script evaluation/afs.py
  • README table updated (also tidies a garbled sentence in the accuracy.py row) and CHANGELOG entry added

The module was undocumented and not exported from tsdate/__init__.py.

@hyanwong
hyanwong force-pushed the remove-evaluation-module branch from 3f094a4 to de2dff6 Compare October 29, 2026 13:45
@hyanwong

Copy link
Copy Markdown
Member Author

I assume you are OK with this @nspope ? This moves the AFS evaluation code (image below) out of the main tree and into an evaluation subdirectory which is not part of the main tsdate package. That means we shouldn't need normal tsdate users to install matplotlib etc.

afs_100

@hyanwong
hyanwong force-pushed the remove-evaluation-module branch from be01963 to 1b373f6 Compare November 2, 2026 18:43
hyanwong and others added 3 commits November 2, 2026 19:03
Accuracy diagnostics are superseded by the scripts in evaluation/. Move the
AFS diagnostics to evaluation/afs.py and the polytomy test helpers
(remove_edges, unsupported_edges) to tests/utility_functions.py.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hyanwong
hyanwong force-pushed the remove-evaluation-module branch from 1b373f6 to b8b4315 Compare November 2, 2026 19:03
@hyanwong
hyanwong merged commit dabe0c5 into tskit-dev:main Nov 2, 2026
15 of 16 checks passed
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