Skip to content

Releases

v0.3.0

Choose a tag to compare

@zolizoli zolizoli released this 29 Jun 18:19

chronowords 0.3.0

Documentation, design, and test-suite hardening. No breaking changes; one additive API change.

Added

  • Subpackage re-exports so the documented imports work directly:
    from chronowords.algebra import SVDAlgebra, from chronowords.topics import TopicModel,
    from chronowords.alignment import ProcrustesAligner, from chronowords.utils import CountMinSketch.
    (These previously raised ImportError.)
  • Runnable Quickstart, a semantic-shift Tutorial, and a Troubleshooting page.
  • Property-based tests (save/load round-trips, Procrustes isometry, PPMI non-negativity);
    PRE-MORTEM.md, MUTATION_TESTING.md, CHANGES_SUMMARY.md; a README roadmap.

Changed

  • Every public-API docstring rewritten as an honest contract (preconditions, raised
    exceptions, silently-swallowed errors), including the Cython PPMIComputer.
  • Safe, behaviour-preserving type annotations on ProcrustesAligner.
  • Docs now build with zero Sphinx warnings.
  • Removed the deprecated sphinx-autodoc-typehints docs extension (types render via
    built-in autodoc).

Notes

  • No runtime behaviour changes. Known limitations and follow-ups are listed in the
    README "Roadmap / further work" section and PRE-MORTEM.md.

v0.2.1

Choose a tag to compare

@zolizoli zolizoli released this 21 Apr 11:26
2633af9

What's Changed

  • Expand hypothesis, switch to ty, add logo by @zolizoli in #3
  • Release v0.2.1: PyPI/RTD links + version bump by @zolizoli in #4

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@zolizoli zolizoli released this 17 Mar 07:45

Build & Tooling

  • Migrated from Poetry to uv for package management
  • Converted pyproject.toml to PEP 621 standard
  • Updated all 5 GitHub Actions workflows to use uv
  • Added MANIFEST.in for proper sdist builds with Cython extensions

Performance & Memory

  • Replaced full dense SVD with truncated SVD (scipy.sparse.linalg.svds) operating directly on sparse PPMI matrices — eliminates ~800MB dense allocation for 10k vocabularies
  • Added O(1) dict-based vocabulary lookups in SVDAlgebra and ProcrustesAligner, replacing O(n) list scans
  • Vectorized CountMinSketch update/query using numpy fancy indexing
  • Added track_keys parameter to CountMinSketch to skip observed-key tracking when not needed (saves millions of string entries during skipgram counting)
  • Pre-computed unified vocabulary mappings in TopicModel.align_with() before O(n_topics²) loop
  • Replaced print statements with proper logging

Tests

  • Expanded test suite from 27 to 41 tests while reducing runtime from 12.4s to 2.4s
  • Added coverage for distance(), analogy(), get_word_similarity(), single-topic models, edge cases
  • Consolidated duplicate CMS tests, removed debug print statements
  • Created shared conftest.py with reusable fixtures
  • Fixed typo: renamed ProcustesAligner → ProcrustesAligner (breaking change)

Breaking Changes

  • ProcustesAligner renamed to ProcrustesAligner
  • CountMinSketch.get_heavy_hitters() raises RuntimeError if `track_keys=False

v0.1.1

Choose a tag to compare

@zolizoli zolizoli released this 12 Feb 14:00

Testing publishing